internal RemoveCodeIssueComputersWorkItem(IList<ICodeIssueComputer> currentComputers, IEnumerable<ICodeIssueComputer> toRemoveComputers, CodeIssueComputersBlackList blackList, RemoveGlobalRefactoringWarnings removeWarningEvent, ProblematicRefactoringsCountChanged countChangedEvent) { this.currentComputers = currentComputers; this.toRemoveComputers = toRemoveComputers; this.blackList = blackList; this.removeWarningEvent = removeWarningEvent; this.countChangedEvent = countChangedEvent; this.logger = NLoggerUtil.GetNLogger(typeof (RemoveCodeIssueComputersWorkItem)); }
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; }
public AddCodeIssueComputersWorkItem(IList<ICodeIssueComputer> currentComputers, IEnumerable<ICodeIssueComputer> newComputers, CodeIssueComputersBlackList blackList, CodeIssueComputersAdded changeEvent, ProblematicRefactoringsCountChanged countChanged) { this.currentComputers = currentComputers; this.newComputers = newComputers; this.blackList = blackList; this.changeEvent = changeEvent; this.countChangd = countChanged; }