Struct CheckpointMetadata
Optional descriptive data associated with a checkpoint.
Provides human-readable information such as timestamp, label, and stage.
Assembly: Serenity.Checkpoint.Domain.dll
Syntax
public readonly struct CheckpointMetadata : IEquatable<CheckpointMetadata>
Constructors
CheckpointMetadata(long, string, string)
Creates a new CheckpointMetadata with the specified values.
Declaration
public CheckpointMetadata(long timestampTicks, string label, string stage)
Parameters
| Type |
Name |
Description |
| long |
timestampTicks |
The UTC timestamp in ticks.
|
| string |
label |
An optional label. Can be null.
|
| string |
stage |
An optional stage identifier. Can be null.
|
Fields
Label
An optional human-readable label for the checkpoint.
Declaration
public readonly string Label
Field Value
Stage
An optional stage or level identifier.
Declaration
public readonly string Stage
Field Value
TimestampTicks
The timestamp when the checkpoint was created (UTC ticks).
Declaration
public readonly long TimestampTicks
Field Value
Methods
Equals(CheckpointMetadata)
Declaration
public bool Equals(CheckpointMetadata other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Now(string, string)
Creates metadata with the current UTC timestamp.
Declaration
public static CheckpointMetadata Now(string label = null, string stage = null)
Parameters
| Type |
Name |
Description |
| string |
label |
An optional label.
|
| string |
stage |
An optional stage identifier.
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(CheckpointMetadata, CheckpointMetadata)
Declaration
public static bool operator ==(CheckpointMetadata left, CheckpointMetadata right)
Parameters
Returns
operator !=(CheckpointMetadata, CheckpointMetadata)
Declaration
public static bool operator !=(CheckpointMetadata left, CheckpointMetadata right)
Parameters
Returns
Implements