I zakładać the rozwiązanie. Dzięki teraz. ono być pracujący świetny teraz.
EndpointAddress adres = nowy EndpointAddress (nowy Uri ("net.tcp: //SC-Server-APP01: 50010/Common/Definition"), EndpointIdentity.CreateUpnIdentity ("svcrange@dev"));
NetTcpBinding netTcpBinding = nowy NetTcpBinding ();
netTcpBinding.MaxReceivedMessageSize = int.MaxValue;
netTcpBinding.TransactionFlow = true;
netTcpBinding.TransactionProtocol = TransactionProtocol.OleTransactions;
netTcpBinding.ReaderQuotas.MaxDepth = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
netTcpBinding.ReaderQuotas.MaxArrayLength = int.MaxValue;
ChannelFactory fabryka = nowy ChannelFactory (netTcpBinding, adres);
fabryka. Endpoint.Behaviors.Add (nowy AttachExtendedHeadersBehavior ()
{
Domena = "pasmo",
Kultura = "",
Użytkownik = ""
});
IDefinition IDefinition1 = factory.CreateChannel ();
var defs = IDefinition1.GetAllDefinitions ("someuser");