Esempio n. 1
0
        public NetworkPoolQueue(NetworkPoolInstance context)
        {
            this.context = context;

            ready = new Queue <NetworkPoolTask>();
            items = new ConcurrentQueue <NetworkPoolTask>();
            keys  = new HashSet <object>();
        }
Esempio n. 2
0
 public void Execute(NetworkPoolInstance context, NetworkPoolTaskCallback callback)
 {
     handler.OnMessage(message);
 }
Esempio n. 3
0
 public void Execute(NetworkPoolInstance context, NetworkPoolTaskCallback callback)
 {
     buffer.Send(message, OnExecuted(callback));
 }
Esempio n. 4
0
 public void Execute(NetworkPoolInstance context, NetworkPoolTaskCallback callback)
 {
     listener.HandleReceived(identifier, count);
     buffer.Process(handler, count);
 }
Esempio n. 5
0
 public void Execute(NetworkPoolInstance context, NetworkPoolTaskCallback callback)
 {
     this.callback.Invoke();
 }