Пример #1
0
        public NetworkPoolQueue(NetworkPoolInstance context)
        {
            this.context = context;

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