Ejemplo n.º 1
0
 public NetMqForwardingClientRqRs(
     IBodyEncoder <TBody> encoder,
     IOutgoingConnection <TPayloadType, TBody> outgoingConnection,
     IConnectionIdGenerator connectionIdGenerator)
 {
     this.connectionId       = connectionIdGenerator.Generate();
     this.encoder            = encoder;
     this.outgoingConnection = outgoingConnection;
 }
 public NetMqClient(
     IBodyEncoder <TBody> encoder,
     IMessageResultMonad <TPayloadType, TBody> messageResultMonad,
     IOutgoingConnection <TPayloadType, TBody> outgoingConnection,
     IConnectionIdGenerator connectionIdGenerator)
 {
     this.encoder            = encoder;
     this.messageResultMonad = messageResultMonad;
     this.outgoingConnection = outgoingConnection;
     this.connectionId       = connectionIdGenerator.Generate();
 }