Exemple #1
0
        public void UsingDefinition(Action <AggregateProjection <MyAggregate> > configure)
        {
            _projection = new AggregateProjection <MyAggregate>();
            configure(_projection);

            _projection.Compile(theStore.Options);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        public void UsingDefinition <T>() where T : AggregateProjection <MyAggregate>, new()
        {
            _projection = new T();

            _projection.Compile(theStore.Options);
        }