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(); }
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(); }