예제 #1
0
 public PipeChannel(
             IDictionary properties, 
             IClientChannelSinkProvider clientProviderChain,
             IServerChannelSinkProvider serverProviderChain
         )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
       _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
예제 #2
0
 public PipeChannel(
     IDictionary properties,
     IClientChannelSinkProvider clientProviderChain,
     IServerChannelSinkProvider serverProviderChain
     )
 {
     _clientChannel = new PipeClientChannel(properties, clientProviderChain);
     _serverChannel = new PipeServerChannel(properties, serverProviderChain);
 }
예제 #3
0
        public void Disconnect()
        {
            DeactivateObjects();

            if (pipeClient != null)
            {
                ChannelServices.UnregisterChannel(pipeClient);
                pipeClient = null;
            }

            formatter = null;
            sink      = null;

            GC.Collect();
        }
예제 #4
0
        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);
        }
예제 #5
0
 public PipeChannel()
 {
     _clientChannel = new PipeClientChannel();
 }
예제 #6
0
 public PipeChannel()
 {
     _clientChannel = new PipeClientChannel();
 }