예제 #1
0
 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;
 }
예제 #2
0
 public void GetMonopolyAccess()
 {
     this._mode = EDispatcherMode.Monopoly;
 }
예제 #3
0
 public void GetAccess()
 {
     this._mode = EDispatcherMode.Regular;
 }
예제 #4
0
 public void ReleaseMonopolyAccess()
 {
     this._mode = EDispatcherMode.Regular;
 }