public static void Setup(int maxPoolSize, int timeoutSeconds) { pipeProcessorPool = new PipeProcessorPool(maxPoolSize); offlineConnectionCleanWorker = new OfflineConnectionCleanWorker(TimeSpan.FromSeconds(timeoutSeconds)); _setupOk = true; }
public static void Setup(int maxPoolSize, int timeoutSeconds) { pipeProcessorPool = new PipeProcessorPool(maxPoolSize); offlineConnectionCleanWorker = new OfflineConnectionCleanWorker(TimeSpan.FromSeconds(timeoutSeconds)); _setupOk=true; }
public PipeProcessor(PipeProcessorPool pipeProcessorPool) { this.pipeProcessorPool = pipeProcessorPool; Task.Factory.StartNew(() => { InnerProcessLogic(); }, TaskCreationOptions.LongRunning); }