Show / Hide Table of Contents

Class LogEntryProducer<TEntry>

Represents default implementation of ILogEntryProducer<TEntry> backed by the list of the log entries.

Inheritance
object
LogEntryProducer<TEntry>
Implements
ILogEntryProducer<TEntry>
IAsyncEnumerator<TEntry>
IAsyncDisposable
IResettable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

LogEntryProducer()

Initializes a new empty producer of the log entries.

Declaration
public LogEntryProducer()
| Edit this page View Source

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.

| Edit this page View Source

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 Source

Of(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.

| Edit this page View Source

Reset()

Resets the position of the producer.

Declaration
public void Reset()

Implements

ILogEntryProducer<TEntry>
IAsyncEnumerator<T>
IAsyncDisposable
IResettable

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
AsyncEnumerable.SkipAsync<T>(IAsyncEnumerator<T>, int)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾