コード例 #1
0
        /// <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);
        }
コード例 #2
0
        private void OnSMStoppedEvent(object sender,
                                      SMProcessArgs e)
        {
            ElementIdPtr.Dispose();

            ElementWdwPtr       = null;
            ElementIdPtr        = null;
            CurrentConceptIdPtr = null;
            CurrentRootIdPtr    = null;
            CurrentHookIdPtr    = null;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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");
        }