Class LogEntryProducer<TEntry>
Represents default implementation of ILogEntryProducer<TEntry> backed by the list of the log entries.
Inherited Members
Namespace: DotNext.IO.Log
Assembly: DotNext.IO.dll
Syntax
public sealed class LogEntryProducer<TEntry> : ILogEntryProducer<TEntry>, IAsyncEnumerator<TEntry>, IAsyncDisposable, IResettable where TEntry : ILogEntry
Type Parameters
| Name | Description |
|---|---|
| TEntry | The type of the supplied entries. |
Constructors
| Edit this page View SourceLogEntryProducer()
Initializes a new empty producer of the log entries.
Declaration
public LogEntryProducer()
LogEntryProducer(IReadOnlyList<TEntry>)
Represents default implementation of ILogEntryProducer<TEntry> backed by the list of the log entries.
Declaration
public LogEntryProducer(IReadOnlyList<TEntry> entries)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<TEntry> | entries | The list of the log entries to be returned by the producer. |
LogEntryProducer(params TEntry[])
Initializes a new producer of the log entries passed as array.
Declaration
public LogEntryProducer(params TEntry[] entries)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntry[] | entries | The log entries to be returned by the producer. |
Methods
| Edit this page View SourceOf(TEntry)
Constructs producer of single log entry.
Declaration
public static ILogEntryProducer<TEntry> Of(TEntry entry)
Parameters
| Type | Name | Description |
|---|---|---|
| TEntry | entry | The entry to be exposed by producer. |
Returns
| Type | Description |
|---|---|
| ILogEntryProducer<TEntry> | The producer of single log entry. |
Reset()
Resets the position of the producer.
Declaration
public void Reset()