public PipeChannel( IDictionary properties, IClientChannelSinkProvider clientProviderChain, IServerChannelSinkProvider serverProviderChain ) { _clientChannel = new PipeClientChannel(properties, clientProviderChain); _serverChannel = new PipeServerChannel(properties, serverProviderChain); }
public void Disconnect() { DeactivateObjects(); if (pipeClient != null) { ChannelServices.UnregisterChannel(pipeClient); pipeClient = null; } formatter = null; sink = null; GC.Collect(); }
public PipeRemotingClient(string channelName, string serviceUri, int port, int customerID, int extensionNumber, string password) { this.serviceUri = serviceUri; this.port = port; sProps = new Hashtable(); sProps["customerid"] = customerID; sProps["extensionnumber"] = extensionNumber; sProps["password"] = password; sink = new SecureClientChannelSinkProvider(sProps, null); formatter = new BinaryClientFormatterSinkProvider(); formatter.Next = sink; tcpClientProps = new Hashtable(); tcpClientProps["pipe"] = serviceUri; pipeClient = new PipeClientChannel(tcpClientProps, formatter); }
public PipeChannel() { _clientChannel = new PipeClientChannel(); }