コード例 #1
0
        private void ResetInitialization()
        {
            lock (_syncRoot)
            {
                if (FileConnection != null)
                {
                    FileConnection.Dispose();
                    FileConnection = null;
                }

                OnReset?.Invoke();

                EnsureInitialize();
            }
        }
コード例 #2
0
        private void CloseLogFile(bool raiseOnResetEvent)
        {
            if (FileConnection != null)
            {
                FileConnection.Dispose();
                FileConnection = null;
            }

            if (raiseOnResetEvent)
            {
                OnReset?.Invoke();
            }
        }