public bool AddProvider(ILogHelperProvider provider) { if (null == provider) { return(false); } return(_logHelperProviders.AddIfNotContainsKey(provider.GetType(), provider)); }
public bool AddProvider(ILogHelperProvider provider) => _logHelperProviders.TryAdd(provider.GetType(), provider);