public void UsingDefinition(Action <AggregateProjection <MyAggregate> > configure) { _projection = new AggregateProjection <MyAggregate>(); configure(_projection); _projection.Compile(theStore.Options); }
public void UsingDefinition <T>() where T : AggregateProjection <MyAggregate>, new() { _projection = new T(); var rules = theStore.Options.CreateGenerationRules(); rules.TypeLoadMode = TypeLoadMode.Dynamic; _projection.Compile(theStore.Options, rules); }
public void UsingDefinition(Action <AggregateProjection <MyAggregate> > configure) { _projection = new AggregateProjection <MyAggregate>(); configure(_projection); var rules = theStore.Options.CreateGenerationRules(); rules.TypeLoadMode = TypeLoadMode.Dynamic; _projection.Compile(theStore.Options, rules); }
public void UsingDefinition <T>() where T : AggregateProjection <MyAggregate>, new() { _projection = new T(); _projection.Compile(theStore.Options); }