예제 #1
0
 public TransportClient(
     ITransmissionClient transmissionClient,
     ITransportProtocolSerializationProvider serializationProvider)
 {
     _transmissionClient = transmissionClient;
     _connectionFactory  = new TransportConnectionFactory(serializationProvider);
 }
예제 #2
0
 public TransportServer(
     ITransmissionServer transmissionServer,
     ITransportProtocolSerializationProvider serializationProvider)
 {
     _connectionFactory  = new TransportConnectionFactory(serializationProvider);
     _transmissionServer = transmissionServer;
     _buffer.Out.PropagateCompletionFrom(Completion);
     OnStop(_transmissionServer.Stop);
 }