コード例 #1
0
ファイル: PipeChannel.cs プロジェクト: hostitherepc/Fork-1
 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
ファイル: PipeChannel.cs プロジェクト: hostitherepc/Fork-1
 public PipeChannel()
 {
     _clientChannel = new PipeClientChannel();
 }
コード例 #6
0
 public PipeChannel()
 {
     _clientChannel = new PipeClientChannel();
 }