private void Load() { lock (_objSync) { if (_loaded) { return; } DbTraceViewerLoader.Load(); _loaded = true; } }
private void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { GC.SuppressFinalize(this); } if (AllowTrace && _loaded) { DbTraceViewerLoader.Unload(); _loaded = false; AllowTrace = false; } _disposed = true; }