コード例 #1
0
 public NamedPipeChannel(NamedPipeChannelDefinition definition, PipeProxy pipe, IDispatcher dispatcher)
 {
     Definition = definition;
     Name       = definition.Name;
     Dispatcher = dispatcher;
     Pipe       = pipe;
     Pipe.Connect();
 }
コード例 #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;
 }
コード例 #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);
        }