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