private void UnregisterRuleSetEventHandler() { if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Unregister(); _ruleSetEventHandler = null; } }
private void LoadAnalyzerNodeComponents() { this.ComponentModel.GetService <IAnalyzerNodeSetup>().Initialize(this); _ruleSetEventHandler = this.ComponentModel.GetService <RuleSetEventHandler>(); if (_ruleSetEventHandler != null) { _ruleSetEventHandler.Register(); } }
private async Task LoadAnalyzerNodeComponentsAsync(CancellationToken cancellationToken) { await this.ComponentModel.GetService <IAnalyzerNodeSetup>().InitializeAsync(this, cancellationToken).ConfigureAwait(false); _ruleSetEventHandler = this.ComponentModel.GetService <RuleSetEventHandler>(); if (_ruleSetEventHandler != null) { await _ruleSetEventHandler.RegisterAsync(this, cancellationToken).ConfigureAwait(false); } }