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
enrollmentUnitOfWorkEnrollmentThe staged enrollment.
effectiveScopeConcurrencyScopeThe scope carried by the enrollment.
GetRequiredScope(UnitOfWorkEnrollment)
Gets the scope this enrollment must carry.
ConcurrencyScope GetRequiredScope(UnitOfWorkEnrollment enrollment)
Parameters
enrollmentUnitOfWorkEnrollmentThe proposed enrollment.
Returns
- ConcurrencyScope
The required scope, or NotSet for no requirement.