Table of Contents

ReceiveAsync Method

Definition

Namespace
Savvyio.Commands.Messaging
Assemblies
Savvyio.Commands.Messaging.dll
Source
src/Savvyio.Commands.Messaging/InMemoryCommandQueue.cs

ReceiveAsync(Action<AsyncOptions>)

Receive one or more command(s) asynchronous using Point-to-Point Channel/P2P MEP.

public IAsyncEnumerable<IMessage<ICommand>> ReceiveAsync(Action<AsyncOptions> setup = null)

Parameters

setup Action<AsyncOptions>

The AsyncOptions which may be configured.

Returns

IAsyncEnumerable<IMessage<ICommand>>

A task that represents the asynchronous operation. The task result contains a sequence of IMessage<T> whose generic type argument is ICommand.