Table of Contents

Class UnicastingDispatcher

Namespace
Steeltoe.Integration.Dispatcher
Assembly
Steeltoe.Integration.IntegrationBase.dll
public class UnicastingDispatcher : AbstractDispatcher, IMessageDispatcher
Inheritance
UnicastingDispatcher
Implements
Inherited Members

Constructors

UnicastingDispatcher(IApplicationContext, ILogger)

public UnicastingDispatcher(IApplicationContext context, ILogger logger = null)

Parameters

context IApplicationContext
logger ILogger

UnicastingDispatcher(IApplicationContext, TaskScheduler, ILogger)

public UnicastingDispatcher(IApplicationContext context, TaskScheduler executor, ILogger logger = null)

Parameters

context IApplicationContext
executor TaskScheduler
logger ILogger

Methods

Dispatch(IMessage, CancellationToken)

Dispatch the message to one or more handlers

public override bool Dispatch(IMessage message, CancellationToken cancellationToken = default)

Parameters

message IMessage

the message to dispatch

cancellationToken CancellationToken

token used to cancel the operation

Returns

bool

the value returned from the handler

DoDispatch(IMessage, CancellationToken)

protected override bool DoDispatch(IMessage message, CancellationToken cancellationToken)

Parameters

message IMessage
cancellationToken CancellationToken

Returns

bool