Esempio n. 1
0
        internal void AddWork(IContext context)
        {
            // ** HERE ** is where we assign work
            // Using dispatch-sharp:
            if (context != null)
            {
                _dispatcher.AddWork(context);
            }

            // using .net thread pool:

            /*ThreadPool.QueueUserWorkItem(c =>
             * {
             *  _handler.Handle(context);
             * }, context);*/
        }