/// <summary> /// Emit a batch of log events, running asynchronously. /// </summary> /// <param name="events">The events to emit.</param> /// <remarks> /// Override either <see cref="PeriodicBatchingSink.EmitBatch" /> or <see cref="PeriodicBatchingSink.EmitBatchAsync" />, not both. /// </remarks> protected override Task EmitBatchAsync(IEnumerable <LogEvent> events) => _sqlBulkBatchWriter.WriteBatch(events, _eventTable);
/// <summary> /// Emit a batch of log events, running asynchronously. /// </summary> /// <param name="events">The events to emit.</param> /// <remarks> /// Override either <see cref="PeriodicBatchingSink.EmitBatch" /> or <see cref="PeriodicBatchingSink.EmitBatchAsync" />, not both. /// </remarks> public Task EmitBatchAsync(IEnumerable <LogEvent> events) => _sqlBulkBatchWriter.WriteBatch(events, _eventTable);