Interface IUnitOfWorkEnrollmentContributor

Namespace
Cratis.Chronicle.Transactions
Assembly
Cratis.Chronicle.dll

Contributes a required scope before events are enrolled in a unit of work.

public interface IUnitOfWorkEnrollmentContributor
Extension Methods

Methods

Enrolled(UnitOfWorkEnrollment, ConcurrencyScope)

Records a successfully staged enrollment. Implementations must not mutate the unit of work.

void Enrolled(UnitOfWorkEnrollment enrollment, ConcurrencyScope effectiveScope)

Parameters

enrollment UnitOfWorkEnrollment

The staged enrollment.

effectiveScope ConcurrencyScope

The scope carried by the enrollment.

GetRequiredScope(UnitOfWorkEnrollment)

Gets the scope this enrollment must carry.

ConcurrencyScope GetRequiredScope(UnitOfWorkEnrollment enrollment)

Parameters

enrollment UnitOfWorkEnrollment

The proposed enrollment.

Returns

ConcurrencyScope

The required scope, or NotSet for no requirement.