Skip to content

Interface IIdGenerator

Namespace: Cephalon.Abstractions.Ids
Assembly: Cephalon.Abstractions.dll

Generates stable textual identifiers for Cephalon workloads.

public interface IIdGenerator

Gets the stable identifier-generation strategy identifier.

string StrategyId { get; }

string

GenerateAsync(IdGenerationRequest?, CancellationToken)

Section titled “ GenerateAsync(IdGenerationRequest?, CancellationToken)”

Generates one identifier.

ValueTask<string> GenerateAsync(IdGenerationRequest? request = null, CancellationToken cancellationToken = default)

request IdGenerationRequest?

Optional generation hints supplied by the caller.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask<string>

A task that completes with the generated identifier.