Пример #1
0
 public ProtocolBase(TranslatorProtocolFactory factory)
 {
     this.factory         = factory;
     this.Listeners       = new List <INodeEndpointProtocolRequestListener>();
     this.requestListener = new RequestListener(this);
 }
Пример #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);
 }
Пример #3
0
 public ServerListener(INodeEndpointProtocolServerListener outerServerListener, ITranslatorProtocolHandlerFactory handlerFactory, TranslatorProtocolFactory factory)
 {
     this.factory             = factory;
     this.outerServerListener = outerServerListener;
     this.handlerFactory      = handlerFactory;
 }