private void Initialize(DeleteApplicationLogsInputDto log, EntityDependency[] dependencies) { RegisterCommandRepositoryFactory <ApplicationLog>(() => new ApplicationLogCommandRepository()); RootEntity = new ApplicationLog { When = log.When }; Enqueue(new DeleteEntityCommandOperation <ApplicationLog>(RootEntity, null, "DeleteOlderLogs")); }
public DeleteApplicationLogsCommandAggregate(DeleteApplicationLogsInputDto log, EntityDependency[] dependencies = null) : base(new DomainFramework.DataAccess.RepositoryContext(ApplicationLogsConnectionClass.GetConnectionName())) { Initialize(log, dependencies); }