Interface ILazyMessageStreamEnumerable<TMessage>
Represent a future IMessageStreamEnumerable<TMessage>, that will created as soon as the first message is pushed.
Namespace: Silverback.Messaging.Messages
Assembly: Silverback.Core.dll
Syntax
public interface ILazyMessageStreamEnumerable<out TMessage>
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages being streamed. |
Properties
| Improve this doc View sourceStream
Gets the IMessageStreamEnumerable<TMessage>, as soon as it is created.
Declaration
IMessageStreamEnumerable<out TMessage>? Stream { get; }
Property Value
Type | Description |
---|---|
IMessageStreamEnumerable<TMessage> |
Methods
| Improve this doc View sourceWaitUntilCreatedAsync()
Gets an awaitable Task that completes when the first message is pushed and the IMessageStreamEnumerable<TMessage> is created. The created stream can be retrieved via the Stream property.
Declaration
Task WaitUntilCreatedAsync()
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |