public static class Comm
{
private static NamedPipeClientChannel NewNamedPipesChannel()
{
NamedPipeClientChannel _channel = new NamedPipeClientChannel();
_channel.NetworkByteOrder = false;
_channel.Server = "http://127.0.0.1:9200/bin";
_channel.Path = "server";
_channel.TargetUrl = "http://127.0.0.1:9200/bin";
_channel.TargetUri = new Uri("http://127.0.0.1:9200/bin");
return _channel;
}
public static ILitrixPoleoService NewPoleoService()
{
BinMessage _message = new BinMessage();
NamedPipeClientChannel _channel = NewNamedPipesChannel();
return CoLitrixPoleoService.Create(_message, _channel);
}
public static ILitrixPoleoService_Async NewPoleoServiceAsync()
{
BinMessage _message = new BinMessage();
NamedPipeClientChannel _channel = NewNamedPipesChannel();
return CoLitrixPoleoServiceAsync.Create(_message, _channel);
}
}
I dont now what im doing wrong…