C# Class Composable.CQRS.EventSourcing.Refactoring.Migrations.SingleAggregateInstanceEventStreamMutator

Inheritance: ISingleAggregateInstanceEventStreamMutator
ファイルを表示 Open project: mlidbom/Composable.Monolithic Class Usage Examples

Public Methods

Method Description
AssertMigrationsAreIdempotent ( IReadOnlyList eventMigrations, AggregateRootEvent @events ) : void
Create ( IAggregateRootEvent creationEvent, IReadOnlyList eventMigrations, Action eventsAddedCallback = null ) : ISingleAggregateInstanceEventStreamMutator
EndOfAggregate ( ) : IEnumerable
Mutate ( AggregateRootEvent @event ) : IEnumerable
MutateCompleteAggregateHistory ( IReadOnlyList eventMigrations, IReadOnlyList @events, Action eventsAddedCallback = null ) : IReadOnlyList

Private Methods

Method Description
SingleAggregateInstanceEventStreamMutator ( IAggregateRootEvent creationEvent, IEnumerable eventMigrations, Action eventsAddedCallback ) : System

Method Details

AssertMigrationsAreIdempotent() public static method

public static AssertMigrationsAreIdempotent ( IReadOnlyList eventMigrations, AggregateRootEvent @events ) : void
eventMigrations IReadOnlyList
@events AggregateRootEvent
return void

Create() public static method

public static Create ( IAggregateRootEvent creationEvent, IReadOnlyList eventMigrations, Action eventsAddedCallback = null ) : ISingleAggregateInstanceEventStreamMutator
creationEvent IAggregateRootEvent
eventMigrations IReadOnlyList
eventsAddedCallback Action
return ISingleAggregateInstanceEventStreamMutator

EndOfAggregate() public method

public EndOfAggregate ( ) : IEnumerable
return IEnumerable

Mutate() public method

public Mutate ( AggregateRootEvent @event ) : IEnumerable
@event AggregateRootEvent
return IEnumerable

MutateCompleteAggregateHistory() public static method

public static MutateCompleteAggregateHistory ( IReadOnlyList eventMigrations, IReadOnlyList @events, Action eventsAddedCallback = null ) : IReadOnlyList
eventMigrations IReadOnlyList
@events IReadOnlyList
eventsAddedCallback Action
return IReadOnlyList