コード例 #1
0
ファイル: PipeProxy.cs プロジェクト: yonglehou/Symbiote
        public PipeProxy(NamedPipeChannelDefinition definition, IDispatcher dispatch, IMessageSerializer messageSerializer)
        {
            Definition  = definition;
            Dispatcher  = dispatch;
            Serializer  = messageSerializer;
            PipeFactory = new PipeEndpointFactory();
            Pipe        = PipeFactory.CreateEndpointForChannel(definition);

            RingBuffer = new RingBuffer(1000);
            RingBuffer.AddTransform(DeserializeMessage);
            RingBuffer.AddTransform(DispatchResult);
            RingBuffer.Start();
        }
コード例 #2
0
ファイル: PipeProxy.cs プロジェクト: cmgator/Symbiote
 public PipeProxy( NamedPipeChannelDefinition definition, IDispatcher dispatch, IMessageSerializer messageSerializer )
 {
     Definition = definition;
     Dispatcher = dispatch;
     Serializer = messageSerializer;
     PipeFactory = new PipeEndpointFactory();
     Pipe = PipeFactory.CreateEndpointForChannel( definition );
     
     RingBuffer = new RingBuffer( 1000 );
     RingBuffer.AddTransform( DeserializeMessage );
     RingBuffer.AddTransform( DispatchResult );
     RingBuffer.Start();
 }