Class TimerTaskCollection<TKey>
Represents an attached collection of ITimerTask<TKey> instances.
public sealed class TimerTaskCollection<TKey> : IDisposable where TKey : notnull
Type Parameters
TKey
Task key type.
- Inheritance
-
TimerTaskCollection<TKey>
- Implements
- Inherited Members
Properties
EventCount
Number of events emitted by the source event stream.
public long EventCount { get; }
Property Value
FirstTimestamp
First Timestamp of an event emitted by the source event stream.
public Timestamp? FirstTimestamp { get; }
Property Value
LastTimestamp
Last Timestamp of an event emitted by the source event stream.
public Timestamp? LastTimestamp { get; }
Property Value
TaskKeys
Collection of registered task keys.
public IReadOnlyCollection<TKey> TaskKeys { get; }
Property Value
- IReadOnlyCollection<TKey>
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
TryGetTaskSnapshot(TKey)
Attempts to create a ReactiveTaskSnapshot<TTask> instance for the given task key
.
[Pure]
public ReactiveTaskSnapshot<ITimerTask<TKey>>? TryGetTaskSnapshot(TKey key)
Parameters
key
TKeyTask key to create a snapshot for.
Returns
- ReactiveTaskSnapshot<ITimerTask<TKey>>
New ReactiveTaskSnapshot<TTask> instance or null when task does not exist.