Table of Contents

Interface ILazyMessageStreamEnumerable<TMessage>

Namespace
Silverback.Messaging.Messages
Assembly
Silverback.Core.dll

Represent a future IMessageStreamEnumerable<TMessage>, that will created as soon as the first message is pushed.

public interface ILazyMessageStreamEnumerable<out TMessage>

Type Parameters

TMessage

The type of the messages being streamed.

Properties

Stream

Gets the IMessageStreamEnumerable<TMessage>, as soon as it is created.

IMessageStreamEnumerable<out TMessage>? Stream { get; }

Property Value

IMessageStreamEnumerable<TMessage>

Methods

WaitUntilCreatedAsync()

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.

Task WaitUntilCreatedAsync()

Returns

Task

A Task representing the asynchronous operation.