private SearchRealDocumentComponent(ISolution solution)
        {
            this.solution = solution;

            // Queue with single thread.
            this.queue = new WorkQueue {ConcurrentLimit = 1};
        }
 private GlobalConfigurationComponent()
 {
     supportedTypes = new List<RefactoringType>();
     queue = new WorkQueue {ConcurrentLimit = 1, WorkerPool = new WorkThreadPool(1, 1)};
     queue.FailedWorkItem += OnItemFailed;
     logger = NLoggerUtil.GetNLogger(typeof (GlobalConfigurationComponent));
 }
 private RefactoringFormViewComponent()
 {
     form = new RefactoringWariningsForm();
     longRunningQueue = new WorkQueue() {ConcurrentLimit = 1};
     shortTaskQueue = new WorkQueue(){ConcurrentLimit = 1};
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.AddGlobalWarnings += OnAddGlobalWarnings;
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.RemoveGlobalWarnings += OnRemoveGlobalWarnings;
     GhostFactorComponents.RefactoringCodeIssueComputerComponent.ProblematicRefactoringCountChanged += OnProblematicRefactoringsCountChanged;
 }
        protected SearchRefactoringComponent()
        {
            // Single thread workqueue.
            queue = new WorkQueue {ConcurrentLimit = 1};
            queue.FailedWorkItem += onFailedWorkItem;

            // Initialize the logger.
            logger = GetLogger();
        }
        private RefactoringCodeIssueComputersComponent()
        {
            codeIssueComputers = new List<ICodeIssueComputer>();
            queue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();

            logger = NLoggerUtil.GetNLogger(typeof (RefactoringCodeIssueComputersComponent));
            nodeFilter = GhostFactorComponents.configurationComponent.GetIssuedNodeFilters();

            codeIssueComputersAdded += OnCodeIssueComputersAdded;
            codeIssueComputersRemoved += OnCodeIssueComputersRemoved;
        }
        private ConditionCheckingComponent()
        {
            // A single thread workqueue.
            queue = new WorkQueue();
            queue.ConcurrentLimit = 1;

            // Set listener for failed work item.
            queue.FailedWorkItem += onFailedItem;

            // Initiate the logger.
            logger = NLoggerUtil.GetNLogger(typeof (ConditionCheckingComponent));
        }
        private RefactoringFormViewComponent()
        {
            form = new RefactoringWariningsForm();
            shortTaskQueue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();

            GhostFactorComponents.historyComponent.OnWorkDocumentChanged += OnWorkDocumentChanged;
            GhostFactorComponents.configurationComponent.supportedRefactoringTypesChangedEvent +=
                RefactoringTypesChangedEvent;

            // Create an work item for showing dialog and add this work item
            // to the work longRunningQueue.
            new Thread(ShowingForm).Start();
        }
        private HistorySavingComponent()
        {
            // Initialize the workqueue.
            this.queue = new WorkQueue();

            // Disallow the concurrency for this component.
            this.queue.ConcurrentLimit = 1;

            // Log the event if an item failed.
            this.queue.FailedWorkItem += onFailedWorkItem;

            // Initiate the component timer.
            this.timer = new ComponentTimer( TIME_INTERVAL, TimeUpHandler);

            // Initialize the logger used in this component.
            logger = NLoggerUtil.GetNLogger(typeof (HistorySavingComponent));

            activeDocumentBox = new StrongBox<IDocument>();
        }
        private RefactoringCodeIssueComputersComponent()
        {
            codeIssueComputers = new List<ICodeIssueComputer>();

            // Single thread workqueue.
            queue = new WorkQueue {ConcurrentLimit = 1};

            // Add a listener for failed work item.
            queue.FailedWorkItem += OnItemFailed;
            logger = NLoggerUtil.GetNLogger(typeof (RefactoringCodeIssueComputersComponent));

            blackList = new CodeIssueComputersBlackList(5);

            codeIssueComputersAddedEvent += OnCodeIssueComputersAdded;
        }
 private SearchRefactoringComponent()
 {
     queue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();
     logger = NLoggerUtil.GetNLogger(typeof (ISearchRefactoringComponent));
 }
Exemplo n.º 11
0
 public GhostWorkQueueTests()
 {
     this.queue = new WorkQueue();
     this.item = new WaitWorkItem();
 }
Exemplo n.º 12
0
 private GitRevisionAnalyzer()
 {
     queue = new WorkQueue {ConcurrentLimit = 1};
     queue.AllWorkCompleted += AllWorkCompleted;
     finished = false;
 }
Exemplo n.º 13
0
 private HistorySavingComponent()
 {
     this.queue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();
     logger = NLoggerUtil.GetNLogger(typeof (HistorySavingComponent));
 }
 private ConditionCheckingComponent()
 {
     queue = GhostFactorComponents.configurationComponent.GetGlobalWorkQueue();
 }
Exemplo n.º 15
0
 public WorkItemSynchronizedExecutor(WorkItem item, WorkQueue queue)
 {
     this.finishAwareWorkItem = new FinishAwareWorkItem(item);
     this.queue = queue;
 }