C# Class Rebus.Pipeline.Receive.HandlerInvoker

Wrapper of the handler that is ready to invoke
Show file Open project: rebus-org/Rebus Class Usage Examples

Public Methods

Method Description
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

Method Details

CanBeInitiatedBy() public method

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
return bool

GetSagaData() public abstract method

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
return ISagaData

Invoke() public abstract method

Method to call in order to invoke this particular handler
public abstract Invoke ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SetSagaData() public abstract method

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
return void

SkipInvocation() public abstract method

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
return void