public void AddProvider(IReporterProvider provider) { lock (_syncLock) { _providers.Add(provider.GetType(), provider); } }
public void AddProvider(IReporterProvider provider) { if (CheckDisposed()) { throw new ObjectDisposedException(nameof(ReportFactory)); } lock (_syncLock) { _providers.Add(provider.GetType(), provider); } }