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

            lock (_syncLock)
            {
                _providers.Add(provider.GetType(), provider);
            }
        }