-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Serilog.Sinks.Async/Sinks/Async/IAsyncLogEventSinkState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace Serilog.Sinks.Async | ||
{ | ||
/// <summary> | ||
/// Provides a way to monitor the state of Async wrapper's ingestion queue. | ||
/// </summary> | ||
public interface IAsyncLogEventSinkState | ||
{ | ||
/// <summary> | ||
/// Configured maximum number of items permitted to be held in the buffer awaiting ingestion. | ||
/// </summary> | ||
/// <exception cref="T:System.ObjectDisposedException">The Sink has been disposed.</exception> | ||
int BufferSize { get; } | ||
|
||
/// <summary> | ||
/// Current moment-in-time Count of items currently awaiting ingestion. | ||
/// </summary> | ||
/// <exception cref="T:System.ObjectDisposedException">The Sink has been disposed.</exception> | ||
int Count { get; } | ||
|
||
/// <summary> | ||
/// Accumulated number of messages dropped due to breach of <see cref="BufferSize"/> limit. | ||
/// </summary> | ||
long DroppedMessagesCount { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters