Esempio n. 1
0
        /// <summary>
        /// Registers a dispatcher. NOTE: If you register a dispatcher, please make sure you call Close/Dispose at the end of your application
        /// </summary>
        /// <param name="dispatcher"></param>
        public void RegisterDispatcher(IDispatcher dispatcher)
        {
            _dispatchers.Add(dispatcher);

            if (_threadPool == null)
            {
                _threadPool = new CustomThreadPool(this, 10);
                _threadPool.Start();
            }
        }