Example #1
0
 public IWorkerContext GetCurrentThreadContext()
 {
     return(_workerPool.GetCurrentThreadContext());
 }
 public IWorkerContext GetCurrentThreadContext()
 {
     return(_inner.GetCurrentThreadContext());
 }
Example #3
0
        public static IEventLoop CreateEventLoopForTheCurrentThread(IWorkerPool workerPool)
        {
            var context = workerPool.GetCurrentThreadContext();

            return(new EventLoop(context, Thread.CurrentThread.ManagedThreadId));
        }