Interface IIdGenerator
Namespace: Cephalon.Abstractions.Ids
Assembly: Cephalon.Abstractions.dll
Generates stable textual identifiers for Cephalon workloads.
public interface IIdGeneratorProperties
Section titled “Properties”StrategyId
Section titled “ StrategyId”Gets the stable identifier-generation strategy identifier.
string StrategyId { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”GenerateAsync(IdGenerationRequest?, CancellationToken)
Section titled “ GenerateAsync(IdGenerationRequest?, CancellationToken)”Generates one identifier.
ValueTask<string> GenerateAsync(IdGenerationRequest? request = null, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”request IdGenerationRequest?
Optional generation hints supplied by the caller.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”A task that completes with the generated identifier.