Interface Schedule<TSaga>
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Holds the state of a scheduled message
public interface Schedule<TSaga> where TSaga : class, SagaStateMachineInstance
Type Parameters
TSaga
Properties
Name
The name of the scheduled message
string Name { get; }
Property Value
Methods
GetDelay(BehaviorContext<TSaga>)
Returns the delay, given the instance, for the scheduled message
TimeSpan GetDelay(BehaviorContext<TSaga> context)
Parameters
context
BehaviorContext<TSaga>
Returns
GetTokenId(TSaga)
Return the TokenId for the instance
Guid? GetTokenId(TSaga instance)
Parameters
instance
TSaga
Returns
- Guid?
SetTokenId(TSaga, Guid?)
Set the token ID on the Instance
void SetTokenId(TSaga instance, Guid? tokenId)
Parameters
instance
TSagatokenId
Guid?