コード例 #1
0
        public OperationManager(Dictionary<string, IAgentPlugin> plugins)
        {
            _plugins = plugins;
            LoadPluginHandler();

            _queue = new OperationQueue();
            _resultsQueue = new OperationResultsQueue();

            var queueCheckerThread = new Thread(QueueCheckerLoop);
            queueCheckerThread.Name = "QueueCheckerLoop";
            queueCheckerThread.Start();

            var resultsQueueThread = new Thread(ResultsQueueCheckerLoop);
            resultsQueueThread.Name = "ResultsQueue";
            resultsQueueThread.Start();

            var operationsQueueThread = new Thread(OperationsQueueCheckerLoop);
            operationsQueueThread.Name = "OperationsQueue";
            operationsQueueThread.Start();
        }
コード例 #2
0
        public OperationManager(Dictionary <string, IAgentPlugin> plugins)
        {
            _plugins = plugins;
            LoadPluginHandler();

            _queue        = new OperationQueue();
            _resultsQueue = new OperationResultsQueue();

            var queueCheckerThread = new Thread(QueueCheckerLoop);

            queueCheckerThread.Name = "QueueCheckerLoop";
            queueCheckerThread.Start();

            var resultsQueueThread = new Thread(ResultsQueueCheckerLoop);

            resultsQueueThread.Name = "ResultsQueue";
            resultsQueueThread.Start();

            var operationsQueueThread = new Thread(OperationsQueueCheckerLoop);

            operationsQueueThread.Name = "OperationsQueue";
            operationsQueueThread.Start();
        }