Ejemplo n.º 1
0
 public NamedPipeChannel(NamedPipeChannelDefinition definition, PipeProxy pipe, IDispatcher dispatcher)
 {
     Definition = definition;
     Name       = definition.Name;
     Dispatcher = dispatcher;
     Pipe       = pipe;
     Pipe.Connect();
 }
Ejemplo n.º 2
0
 public IChannel CreateChannel( IChannelDefinition definition )
 {
     var namedPipeChannelDefinition = definition as NamedPipeChannelDefinition;
     var serializer = Assimilate.GetInstanceOf( definition.SerializerType ) as IMessageSerializer;
     var proxy = new PipeProxy( namedPipeChannelDefinition, Dispatcher, serializer );
     var namedPipeChannel = new NamedPipeChannel( namedPipeChannelDefinition, proxy, Dispatcher );
     return namedPipeChannel;
 }
Ejemplo n.º 3
0
        public IChannel CreateChannel(IChannelDefinition definition)
        {
            var namedPipeChannelDefinition = definition as NamedPipeChannelDefinition;
            var serializer       = Assimilate.GetInstanceOf(definition.SerializerType) as IMessageSerializer;
            var proxy            = new PipeProxy(namedPipeChannelDefinition, Dispatcher, serializer);
            var namedPipeChannel = new NamedPipeChannel(namedPipeChannelDefinition, proxy, Dispatcher);

            return(namedPipeChannel);
        }