Interface IGeneratableInContext<TSelf>

Namespace
Cratis.Concepts
Assembly
Cratis.Fundamentals.dll

Defines a value that can create a new instance using the operation's time or tenant.

public interface IGeneratableInContext<TSelf> where TSelf : IGeneratableInContext<TSelf>

Type Parameters

TSelf

The type that generates its own instances.

Extension Methods

Remarks

If a type also implements IGeneratable<TSelf>, callers use this context form.

Methods

New(GenerationContext)

Creates a new value using the type's context-dependent generation strategy.

public static abstract TSelf New(GenerationContext context)

Parameters

context GenerationContext

The operation's captured time and portable tenant identifier.

Returns

TSelf

A new instance of TSelf.