private void ResetInitialization() { lock (_syncRoot) { if (FileConnection != null) { FileConnection.Dispose(); FileConnection = null; } OnReset?.Invoke(); EnsureInitialize(); } }
private void CloseLogFile(bool raiseOnResetEvent) { if (FileConnection != null) { FileConnection.Dispose(); FileConnection = null; } if (raiseOnResetEvent) { OnReset?.Invoke(); } }