Class CompletionCallbackCollection<TOutput>
- Namespace
- Temporalio.Nexus
- Assembly
- Temporalio.dll
An immutable collection of callbacks that accept the source result type or raw payloads. Use a CompletionCallbackCollection<TOutput>.Builder to create a nonempty collection.
public sealed class CompletionCallbackCollection<TOutput> : IReadOnlyCollection<CompletionCallback>, IEnumerable<CompletionCallback>, IEnumerable
Type Parameters
TOutputThe type of the source operation's result.
- Inheritance
-
CompletionCallbackCollection<TOutput>
- Implements
- Inherited Members
Remarks
WARNING: This API is experimental and may change.
Constructors
CompletionCallbackCollection()
Initializes a new instance of the CompletionCallbackCollection<TOutput> class.
public CompletionCallbackCollection()
Properties
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
- int
The number of elements in the collection.
Methods
Concat(CompletionCallbackCollection<RawValue>)
Combines these callbacks with raw callbacks without changing either source.
public CompletionCallbackCollection<TOutput> Concat(CompletionCallbackCollection<RawValue> callbacks)
Parameters
callbacksCompletionCallbackCollection<RawValue>The callbacks to append.
Returns
- CompletionCallbackCollection<TOutput>
A new collection with these callbacks followed by the supplied callbacks.
Concat(CompletionCallbackCollection<TOutput>)
Combines these callbacks with another collection without changing either source.
public CompletionCallbackCollection<TOutput> Concat(CompletionCallbackCollection<TOutput> callbacks)
Parameters
callbacksCompletionCallbackCollection<TOutput>The callbacks to append.
Returns
- CompletionCallbackCollection<TOutput>
A new collection with these callbacks followed by the supplied callbacks.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<CompletionCallback> GetEnumerator()
Returns
- IEnumerator<CompletionCallback>
An enumerator that can be used to iterate through the collection.