public Endpoint(ITopLogger logger, Identity identity) { this._connected = new List <EndpointProxy>(); this._log = logger; this.Identity = identity; this.ChannelSelector = new ClientChannelSharedSelector(logger); this._handler = new EndpointHandler(logger); this._handler.MessageHandler = ctx => OnMessage(this, ctx); this._handler.AckMessageHandler = (m, i) => OnAckMessage(this, new AckMessageArgs(m, i)); }
public Endpoint(ILoggerFactory loggerFactory, Identity identity) { this._connected = new List<EndpointProxy>(); this._log = loggerFactory.Create(this); this.Identity = identity; this.ChannelSelector = new ClientChannelSharedSelector(loggerFactory); this._handler = new EndpointHandler(loggerFactory); this._handler.MessageHandler = ctx => OnMessage(this, ctx); this._handler.AckMessageHandler = (m, i) => OnAckMessage(this, new AckMessageArgs(m, i)); }
public EndpointContext(ChannelContext channelContext , EndpointHandler handler , Identity messageFrom , int flag , string token) { this._channelContext = channelContext; this._handler = handler; this.MessageFrom = messageFrom; this._flag = flag; this._token = token; }
public EndpointContext(ChannelContext channelContext , EndpointHandler handler , Identity messageFrom , int flag , string token) { this._channelContext = channelContext; this._handler = handler; this.MessageFrom = messageFrom; this._flag = flag; this._token = token; }
public EndpointProxy(EndpointHandler handler) { this._senders = new List<IChannelSender>(); this._random = new Random(); this._handler = handler; }
public EndpointProxy(EndpointHandler handler) { this._senders = new List <IChannelSender>(); this._random = new Random(); this._handler = handler; }