Table of Contents

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

string

Methods

GetDelay(BehaviorContext<TSaga>)

Returns the delay, given the instance, for the scheduled message

TimeSpan GetDelay(BehaviorContext<TSaga> context)

Parameters

context BehaviorContext<TSaga>

Returns

TimeSpan

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 TSaga
tokenId Guid?