예제 #1
0
 public AggregateAnnotationCommandHandler(IRepository <T> repository,
                                          ICommandTargetResolver commandTargetResolver,
                                          IParameterResolverFactory parameterResolverFactory,
                                          IHandlerDefinition handlerDefinition)
     : this(repository, commandTargetResolver, AnnotatedAggregateMetaModelFactory.InspectAggregate(typeof(T), parameterResolverFactory, handlerDefinition))
 {
 }
예제 #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;
 }
예제 #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")))
 {
 }
예제 #4
0
 protected AbstractRepository(IParameterResolverFactory parameterResolverFactory)
     : this(AnnotatedAggregateMetaModelFactory.InspectAggregate(typeof(T), NotNull(parameterResolverFactory, () => "parameterResolverFactory may not be null")))
 {
 }