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
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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 where TEntry : ILogEntry
Type Parameters
Name Description
TEntry

The type of the supplied entries.

Constructors

| Improve this Doc View Source

LogEntryProducer()

Initializes a new empty producer of the log entries.

Declaration
public LogEntryProducer()
| Improve this Doc View Source

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

| Improve this Doc View Source

LogEntryProducer(IList<TEntry>)

Initializes a new producer of the log entries passed as list.

Declaration
public LogEntryProducer(IList<TEntry> entries)
Parameters
Type Name Description
IList<TEntry> entries

The list of the log entries to be returned by the producer.

Methods

| Improve this Doc 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.

| Improve this Doc View Source

Reset()

Resets the position of the producer.

Declaration
public void Reset()

Explicit Interface Implementations

| Improve this Doc View Source

ILogEntryProducer<TEntry>.RemainingCount

Declaration
long ILogEntryProducer<TEntry>.RemainingCount { get; }
Returns
Type Description
Int64
| Improve this Doc View Source

IAsyncEnumerator<TEntry>.Current

Declaration
TEntry IAsyncEnumerator<TEntry>.Current { get; }
Returns
Type Description
TEntry
| Improve this Doc View Source

IAsyncEnumerator<TEntry>.MoveNextAsync()

Declaration
ValueTask<bool> IAsyncEnumerator<TEntry>.MoveNextAsync()
Returns
Type Description
ValueTask<Boolean>
| Improve this Doc View Source

IAsyncDisposable.DisposeAsync()

Declaration
ValueTask IAsyncDisposable.DisposeAsync()
Returns
Type Description
ValueTask

Implements

ILogEntryProducer<TEntry>
System.Collections.Generic.IAsyncEnumerator<T>
System.IAsyncDisposable

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
Sequence.SkipAsync<T>(IAsyncEnumerator<T>, Int32)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX