C# Класс Rebus.Pipeline.Receive.HandlerInvoker

Wrapper of the handler that is ready to invoke
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CanBeInitiatedBy ( Type messageType ) : bool

Gets whether a message of the given type is allowed to cause a new saga data instance to be created

GetSagaData ( ) : ISagaData

Gets from the invoker the piece of saga data that has been determined to be relevant for the invocation, returning null if no such saga data has been set

Invoke ( ) : System.Threading.Tasks.Task

Method to call in order to invoke this particular handler

SetSagaData ( ISagaData sagaData ) : void

Adds to the invoker a piece of saga data that has been determined to be relevant for the invocation

SkipInvocation ( ) : void

Marks this handler as one to skip, i.e. calling this method will make the invoker ignore the call to Invoke

Описание методов

CanBeInitiatedBy() публичный Метод

Gets whether a message of the given type is allowed to cause a new saga data instance to be created
public CanBeInitiatedBy ( Type messageType ) : bool
messageType System.Type
Результат bool

GetSagaData() публичный абстрактный Метод

Gets from the invoker the piece of saga data that has been determined to be relevant for the invocation, returning null if no such saga data has been set
public abstract GetSagaData ( ) : ISagaData
Результат ISagaData

Invoke() публичный абстрактный Метод

Method to call in order to invoke this particular handler
public abstract Invoke ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SetSagaData() публичный абстрактный Метод

Adds to the invoker a piece of saga data that has been determined to be relevant for the invocation
public abstract SetSagaData ( ISagaData sagaData ) : void
sagaData ISagaData
Результат void

SkipInvocation() публичный абстрактный Метод

Marks this handler as one to skip, i.e. calling this method will make the invoker ignore the call to Invoke
public abstract SkipInvocation ( ) : void
Результат void