public void UsingDefinition(Action <V4AggregateProjection <MyAggregate> > configure) { _projection = new V4AggregateProjection <MyAggregate>(); configure(_projection); _projection.Compile(theStore); }
public void UsingDefinition <T>() where T : V4AggregateProjection <MyAggregate>, new() { _projection = new T(); _projection.Compile(theStore); }