コード例 #1
0
 /// <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);
コード例 #2
0
 /// <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);