public InteractDispatcher(IConnection connection) { if (connection == null) { throw new ArgumentNullException("connection", "cannot be null"); } this._receiveInProgress = false; this._continueRecieve = false; this._filter = new Dictionary <string, List <uint> >(); this._nextId = 0; this._connection = connection; this._queues = new Dictionary <uint, Queue <string> >(); this._commandFilters = new Dictionary <uint, ResponseFilter>(); this._mode = EDispatcherMode.Regular; }
public void GetMonopolyAccess() { this._mode = EDispatcherMode.Monopoly; }
public void GetAccess() { this._mode = EDispatcherMode.Regular; }
public void ReleaseMonopolyAccess() { this._mode = EDispatcherMode.Regular; }