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