public static IGlobalConfiguration <SqlStorage> UseSqlServerStorage( this IGlobalConfiguration configuration, string nameOrConnectionString) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (nameOrConnectionString == null) { throw new ArgumentNullException(nameof(nameOrConnectionString)); } var storage = new SqlStorage(nameOrConnectionString); return(configuration.UseStorage(storage)); }
public SqlStorageMonitoringApi(SqlStorage storage) { _storage = storage ?? throw new ArgumentNullException(nameof(storage)); }