예제 #1
0
        public static void Setup(int maxPoolSize, int timeoutSeconds)
        {
            pipeProcessorPool            = new PipeProcessorPool(maxPoolSize);
            offlineConnectionCleanWorker = new OfflineConnectionCleanWorker(TimeSpan.FromSeconds(timeoutSeconds));

            _setupOk = true;
        }
예제 #2
0
        public static void Setup(int maxPoolSize, int timeoutSeconds)
        {
            pipeProcessorPool = new PipeProcessorPool(maxPoolSize);
            offlineConnectionCleanWorker = new OfflineConnectionCleanWorker(TimeSpan.FromSeconds(timeoutSeconds));

            _setupOk=true;
        }
예제 #3
0
        public PipeProcessor(PipeProcessorPool pipeProcessorPool)
        {
            this.pipeProcessorPool = pipeProcessorPool;

            Task.Factory.StartNew(() =>
            {
                InnerProcessLogic();
            }, TaskCreationOptions.LongRunning);
        }