Exemple #1
0
 public AggregateAnnotationCommandHandler(IRepository <T> repository,
                                          ICommandTargetResolver commandTargetResolver,
                                          IParameterResolverFactory parameterResolverFactory,
                                          IHandlerDefinition handlerDefinition)
     : this(repository, commandTargetResolver, AnnotatedAggregateMetaModelFactory.InspectAggregate(typeof(T), parameterResolverFactory, handlerDefinition))
 {
 }
Exemple #2
0
 public AnnotationCommandHandlerAdapter(object annotatedCommandHandler,
                                        IParameterResolverFactory parameterResolverFactory,
                                        IHandlerDefinition handlerDefinition)
 {
     Assert.NotNull(annotatedCommandHandler, () => "annotatedCommandHandler may not be null");
     _modelInspector = AnnotatedAggregateMetaModelFactory.InspectAggregate(annotatedCommandHandler.GetType(), parameterResolverFactory, handlerDefinition);
     _target         = annotatedCommandHandler;
 }
Exemple #3
0
 protected AbstractRepository(IParameterResolverFactory parameterResolverFactory, IHandlerDefinition handlerDefinition)
     : this(AnnotatedAggregateMetaModelFactory.InspectAggregate(typeof(T),
                                                                NotNull(parameterResolverFactory, () => "parameterResolverFactory may not be null"),
                                                                NotNull(handlerDefinition, () => "handler definition may not be null")))
 {
 }
Exemple #4
0
 protected AbstractRepository(IParameterResolverFactory parameterResolverFactory)
     : this(AnnotatedAggregateMetaModelFactory.InspectAggregate(typeof(T), NotNull(parameterResolverFactory, () => "parameterResolverFactory may not be null")))
 {
 }