コード例 #1
0
        void IReactor.AddResult(IAsyncResult ar, Action <IAsyncResult, object> callback, object state)
        {
            var slot = new ReactorSlot()
            {
                Result   = ar,
                Callback = callback,
                Handle   = ar.AsyncWaitHandle,
                State    = state
            };

            _slots.Add(slot);

            _loopControl.Set();
        }
コード例 #2
0
ファイル: Reactor.cs プロジェクト: krishnarajv/Code
        void IReactor.AddResult(IAsyncResult ar, Action<IAsyncResult, object> callback, object state)
        {
            var slot = new ReactorSlot()
            {
                Result = ar,
                Callback = callback,
                Handle = ar.AsyncWaitHandle,
                State = state
            };

            _slots.Add(slot);

            _loopControl.Set();
        }