Class SagaPreparedTimerMutation
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
actionSagaPreparedTimerActionThe timer operation.
timeoutIdstringThe stable timeout identifier; empty only for cancel-all.
generationlongThe scheduling generation.
timeoutTypestringThe registered timeout type for schedules.
databyte[]The already-encoded timeout data.
dueAtDateTimeOffset?The exact scheduled due instant.
scheduledAtDateTimeOffset?The exact original scheduling instant.
sagaTypestringThe original registered saga routing type for schedules, distinct from the persisted state type.
Properties
Action
Gets the operation.
public SagaPreparedTimerAction Action { get; }
Property Value
DueAt
Gets the exact due instant.
public DateTimeOffset? DueAt { get; }
Property Value
Generation
Gets the scheduling generation.
public long Generation { get; }
Property Value
SagaType
Gets the original saga routing type for schedules.
public string? SagaType { get; }
Property Value
ScheduledAt
Gets the exact original scheduling instant.
public DateTimeOffset? ScheduledAt { get; }
Property Value
TimeoutId
Gets the stable timeout identifier.
public string TimeoutId { get; }
Property Value
TimeoutType
Gets the registered timeout type.
public string? TimeoutType { get; }
Property Value
Methods
GetData()
Returns a caller-owned copy of encoded timer data.
public byte[]? GetData()
Returns
- byte[]
The encoded data, or null.