Table of Contents

Class SagaPreparedTimerMutation

Namespace
Excalibur.Dispatch.Messaging
Assembly
Excalibur.Dispatch.Abstractions.dll

Owns the encoded immutable inputs for one SQL timer mutation.

public sealed class SagaPreparedTimerMutation
Inheritance
SagaPreparedTimerMutation
Inherited Members
Extension Methods

Constructors

SagaPreparedTimerMutation(SagaPreparedTimerAction, string, long, string?, byte[]?, DateTimeOffset?, DateTimeOffset?, string?)

Initializes a validated timer mutation and copies encoded data.

public SagaPreparedTimerMutation(SagaPreparedTimerAction action, string timeoutId, long generation, string? timeoutType, byte[]? data, DateTimeOffset? dueAt, DateTimeOffset? scheduledAt, string? sagaType = null)

Parameters

action SagaPreparedTimerAction

The timer operation.

timeoutId string

The stable timeout identifier; empty only for cancel-all.

generation long

The scheduling generation.

timeoutType string

The registered timeout type for schedules.

data byte[]

The already-encoded timeout data.

dueAt DateTimeOffset?

The exact scheduled due instant.

scheduledAt DateTimeOffset?

The exact original scheduling instant.

sagaType string

The original registered saga routing type for schedules, distinct from the persisted state type.

Properties

Action

Gets the operation.

public SagaPreparedTimerAction Action { get; }

Property Value

SagaPreparedTimerAction

DueAt

Gets the exact due instant.

public DateTimeOffset? DueAt { get; }

Property Value

DateTimeOffset?

Generation

Gets the scheduling generation.

public long Generation { get; }

Property Value

long

SagaType

Gets the original saga routing type for schedules.

public string? SagaType { get; }

Property Value

string

ScheduledAt

Gets the exact original scheduling instant.

public DateTimeOffset? ScheduledAt { get; }

Property Value

DateTimeOffset?

TimeoutId

Gets the stable timeout identifier.

public string TimeoutId { get; }

Property Value

string

TimeoutType

Gets the registered timeout type.

public string? TimeoutType { get; }

Property Value

string

Methods

GetData()

Returns a caller-owned copy of encoded timer data.

public byte[]? GetData()

Returns

byte[]

The encoded data, or null.