I grundar lösningarna. Tack nu. det är den funktionsdugliga boten nu.
EndpointAddress tilltalar = nya EndpointAddress (nya Uri (”net.tcp: //SC-Server-APP01: 50010/Common/Definition”), EndpointIdentity.CreateUpnIdentity (”svcrange@dev”));
NetTcpBinding som netTcpBinding = nya 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 fabrik = nya ChannelFactory (som netTcpBinding, tilltala);
fabrik. Endpoint.Behaviors.Add (nya AttachExtendedHeadersBehavior ()
{
Området = ”spänner”,
Kultur = "",
Användare = "",
});
IDefinition IDefinition1 = factory.CreateChannel ();
var-defs = IDefinition1.GetAllDefinitions (”someuser”);