Ejemplo n.º 1
0
 public SqlLogEventWriter(
     string tableName,
     string schemaName,
     ISqlConnectionFactory sqlConnectionFactory,
     ILogEventDataGenerator logEventDataGenerator)
 {
     _tableName             = tableName ?? throw new ArgumentNullException(nameof(tableName));
     _schemaName            = schemaName ?? throw new ArgumentNullException(nameof(schemaName));
     _sqlConnectionFactory  = sqlConnectionFactory ?? throw new ArgumentNullException(nameof(sqlConnectionFactory));
     _logEventDataGenerator = logEventDataGenerator ?? throw new ArgumentNullException(nameof(logEventDataGenerator));
 }
 public SqlBulkBatchWriter(
     string tableName,
     string schemaName,
     bool disableTriggers,
     ISqlConnectionFactory sqlConnectionFactory,
     ILogEventDataGenerator logEventDataGenerator)
 {
     _tableName             = tableName ?? throw new ArgumentNullException(nameof(tableName));
     _schemaName            = schemaName ?? throw new ArgumentNullException(nameof(schemaName));
     _disableTriggers       = disableTriggers;
     _sqlConnectionFactory  = sqlConnectionFactory ?? throw new ArgumentNullException(nameof(sqlConnectionFactory));
     _logEventDataGenerator = logEventDataGenerator ?? throw new ArgumentNullException(nameof(logEventDataGenerator));
 }