/// <inheritdoc /> public void Dispose() { LogTo.Debug("Cleaning up {Name}", GetType().Name); _controlGroup?.Dispose(); SMMainWdwPtr?.Dispose(); ElementWdwPtr?.Dispose(); ElementIdPtr?.Dispose(); CurrentConceptIdPtr?.Dispose(); CurrentConceptGroupIdPtr?.Dispose(); CurrentRootIdPtr?.Dispose(); CurrentHookIdPtr?.Dispose(); LearningModePtr?.Dispose(); SMMainWdwPtr = null; ElementWdwPtr = null; ElementIdPtr = null; CurrentConceptIdPtr = null; CurrentConceptGroupIdPtr = null; CurrentRootIdPtr = null; CurrentHookIdPtr = null; LearningModePtr = null; LogTo.Debug("Cleaning up {Name}... Done", GetType().Name); }
private void OnSMStoppedEvent(object sender, SMProcessArgs e) { ElementIdPtr.Dispose(); ElementWdwPtr = null; ElementIdPtr = null; CurrentConceptIdPtr = null; CurrentRootIdPtr = null; CurrentHookIdPtr = null; }
private Task OnSMStoppedEvent(object sender, SMProcessArgs e) { LogTo.Debug($"Cleaning up {GetType().Name}"); ElementIdPtr?.Dispose(); ElementWdwPtr = null; ElementIdPtr = null; CurrentConceptIdPtr = null; CurrentRootIdPtr = null; CurrentHookIdPtr = null; return(TaskConstants.Completed); }
private void OnSMStoppedEvent(object sender, SMProcessArgs e) { LogTo.Debug($"Cleaning up {GetType().Name}"); ElementIdPtr?.Dispose(); SMMainWdwPtr = null; ElementWdwPtr = null; ElementIdPtr = null; CurrentConceptIdPtr = null; CurrentConceptGroupIdPtr = null; CurrentRootIdPtr = null; CurrentHookIdPtr = null; LearningModePtr = null; LogTo.Debug($"Cleaning up {GetType().Name}... Done"); }