Esempio n. 1
0
 public ProtocolBase(TranslatorProtocolFactory factory)
 {
     this.factory         = factory;
     this.Listeners       = new List <INodeEndpointProtocolRequestListener>();
     this.requestListener = new RequestListener(this);
 }
Esempio n. 2
0
 public Client(INodeEndpointProtocolClient outerProtocol, ITranslatorProtocolHandlerFactory handlerFactory, TranslatorProtocolFactory factory)
     : base(factory)
 {
     this.clientHandler = handlerFactory.CreateClientHandler();
     SetOuterProtocol(outerProtocol);
     this.Handler = this.clientHandler;
     this.clientHandler.AttachClient(this);
 }
Esempio n. 3
0
 public ServerListener(INodeEndpointProtocolServerListener outerServerListener, ITranslatorProtocolHandlerFactory handlerFactory, TranslatorProtocolFactory factory)
 {
     this.factory             = factory;
     this.outerServerListener = outerServerListener;
     this.handlerFactory      = handlerFactory;
 }