C# Class Rebus.Pipeline.Receive.HandlerInvoker

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

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

GetSagaData() public abstract méthode

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
Résultat ISagaData

Invoke() public abstract méthode

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

SetSagaData() public abstract méthode

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
Résultat void

SkipInvocation() public abstract méthode

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
Résultat void