/// <summary> /// Creates new instance that uses <paramref name="repositoryFactory"/> for creating instances of repository. /// </summary> /// <param name="repositoryFactory">The factory for instances of the repository.</param> public AggregateRootCommandHandler(IFactory <IRepository <T, IKey> > repositoryFactory) { defaultExecutor = new AggregateRootCommandExecutor <T, IRepository <T, IKey> >(repositoryFactory, null, GetAggregateAsync, SaveAggregateAsync); }
/// <summary> /// Creates new instance that uses <paramref name="repositoryFactory"/> for creating instances of repository. /// </summary> /// <param name="repositoryFactory">The factory for instances of the repository.</param> public ProcessRootCommandHandler(IFactory <IProcessRootRepository <T> > repositoryFactory) { defaultExecutor = new AggregateRootCommandExecutor <T, IProcessRootRepository <T> >(repositoryFactory, null, GetProcessAsync, SaveProcessAsync); }