public CrudAppService(ICrudDomainService <TEntity> crudDomainService, IMapper objectMapper, ILogger logger, IExceptionManager exceptionManager, IUnitOfWorkScopeFactory unitOfWorkScopeFactory) : base(logger, exceptionManager, unitOfWorkScopeFactory) { this._crudDomainService = crudDomainService; this._objectMapper = objectMapper; }
protected JobStatusManager(IPaymentLogger logger, IUnitOfWorkScopeFactory scopeFactory, IJobServiceConfiguration configuration) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.scopeFactory = scopeFactory ?? throw new ArgumentNullException(nameof(scopeFactory)); interval = configuration.JobStatusInterval; currentJobs = new ConcurrentDictionary <long, bool>(); }
public DomainServiceBase(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) { if (baseUnitOfWorkScopeFactory == null) { throw new ArgumentNullException("baseUnitOfWorkScopeFactory"); } _baseUnitOfWorkScopeFactory = baseUnitOfWorkScopeFactory; }
public CustomerService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <Customer> repository, ILogger <CustomerService> logger, IExceptionManager exceptionManager) : base(unitOfWorkScopeFactory, repository, logger, exceptionManager) { repository.DataStoreName = "TestDbContext"; this._repository = repository; this.AddRulesAndValidators(); }
public AuthenticationProcess(IAuthenticationConfiguration configuration, IUnitOfWorkScopeFactory scopeFactory, Logger logger, IAccountRepository accountRepository, ILogonHistoryRepository logonHistoryRepository, IBusinessTransactionObservable transaction) { _scopeFactory = scopeFactory; _logger = logger; _logonHistoryRepository = logonHistoryRepository; _accountRepository = accountRepository; _transaction = transaction; _configuration = configuration; }
public BetScreenshotProcessor(ITransactionScopeFactory transactionScopeFactory, IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IRepository<BetScreenshot> repositoryOfBetScreenshot, IRepository<Bet> repositoryOfBet, IScreenshotMakerFactory screenshotMakerFactory, IScreenshotAmazonS3Putter screenshotAmazonS3Putter, IBetScreenshotPathService betScreenshotPathService) { _transactionScopeFactory = transactionScopeFactory; _unitOfWorkScopeFactory = unitOfWorkScopeFactory; _repositoryOfBetScreenshot = repositoryOfBetScreenshot; _repositoryOfBet = repositoryOfBet; _screenshotMakerFactory = screenshotMakerFactory; _screenshotAmazonS3Putter = screenshotAmazonS3Putter; _betScreenshotPathService = betScreenshotPathService; }
public BattlesService(ITransactionScopeFactory transactionScopeFactory, IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IRepository<Battle> repositoryOfBattle, IRepository<Team> repositoryOfTeam, IRepository<Bet> repositoryOfBet, IRepository<BetScreenshot> repositoryOfBetScreenshot, IRepository<TeamBattleStatistics> repositoryOfTeamBattleStatistics, IRepository<TeamStatistics> repositoryOfTeamStatistics) { _transactionScopeFactory = transactionScopeFactory; _repositoryOfBattle = repositoryOfBattle; _repositoryOfTeam = repositoryOfTeam; _repositoryOfBet = repositoryOfBet; _repositoryOfBetScreenshot = repositoryOfBetScreenshot; _repositoryOfTeamBattleStatistics = repositoryOfTeamBattleStatistics; _repositoryOfTeamStatistics = repositoryOfTeamStatistics; _unitOfWorkScopeFactory = unitOfWorkScopeFactory; }
public BlogDomainService( IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory, IBlogPostDomainService blogPostDomainService, ICategoryDomainService categoryDomainService, ITagDomainService tagDomainService, IAuthorDomainService authorDomainService) : base(baseUnitOfWorkScopeFactory) { BlogPostDomainService = blogPostDomainService; CategoryDomainService = categoryDomainService; TagDomainService = tagDomainService; AuthorDomainService = authorDomainService; }
public ComponentBusinessProcessBase(IUser currentUser, IUnitOfWorkScopeFactory scopeFactory, ISaveEntityOperation <TEntity> saveOperation, ICreateEntityOperation <TEntity> createOperation, //Func< BG.Infrastructure.Process.Process.ICreateEntityOperation<Aetp.CRM2.Models.EF.Main.Person>> createOperation, IDeleteEntityOperation <TEntity> deleteOperation) : base() { this.SaveOperation = saveOperation; this.CreateOperation = createOperation; this.DeleteOperation = deleteOperation; this.ScopeFactory = scopeFactory; CurrentUser = currentUser; }
public PeriodEndStartJobStatusManager(IPaymentLogger logger, IUnitOfWorkScopeFactory scopeFactory, IJobServiceConfiguration configuration) : base(logger, scopeFactory, configuration) { }
public CarouselItemDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public CategoryDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public CrudDomainService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <TEntity> repository, ILogger logger, IExceptionManager exceptionManager) : base(logger, exceptionManager) { this._unitOfWorkScopeFactory = unitOfWorkScopeFactory; this._repository = repository; }
public MyAppService(IOrderService orderService, ICustomerService customerService, IMapper objectMapper, ILogger <MyAppService> logger, IExceptionManager exceptionManager, IUnitOfWorkScopeFactory unitOfWorkScopeFactory) : base(customerService, objectMapper, logger, exceptionManager, unitOfWorkScopeFactory) { this._orderService = orderService; this._customerService = customerService; this._objectMapper = objectMapper; }
public SectionDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public DomainServiceEntityBase(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public DiveLocationService(IEagerFetchingRepository <DiveLocationDetail> diveLocationDetailRepository, IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <DiveLocation> diveLocationRepository, ILogger <DiveLocationService> logger, IExceptionManager exceptionManager) : base(unitOfWorkScopeFactory, diveLocationRepository, logger, exceptionManager) { _diveLocationDetailRepository = diveLocationDetailRepository; _diveLocationRepository = diveLocationRepository; _diveLocationRepository.DataStoreName = DataStoreDefinitions.Samples; _diveLocationDetailRepository.DataStoreName = DataStoreDefinitions.Samples; }
public BlogPostDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public MailingListDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public TestAppService(ITestDomainService domainService, IMapper objectMapper, ILogger <TestAppService> logger, IExceptionManager exceptionManager, IUnitOfWorkScopeFactory unitOfWorkScopeFactory) : base(domainService, objectMapper, logger, exceptionManager, unitOfWorkScopeFactory) { }
public CurrencyDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public ProjectDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public FormSubmissionDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public LogonHistoryRepository(IUnitOfWorkScopeFactory scopeFactory, IRepository <LogonHistory> repository) { _scopeFactory = scopeFactory; _repository = repository; }
public AccountRepository(IUnitOfWorkScopeFactory scopeFactory, IRepository <Account> repository) { _scopeFactory = scopeFactory; _repository = repository; }
public UsersService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IRepository<User> repositoryOfUser, IRepository<Team> repositoryOfTeam) { _unitOfWorkScopeFactory = unitOfWorkScopeFactory; _repositoryOfUser = repositoryOfUser; _repositoryOfTeam = repositoryOfTeam; }
public ContentTextDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public AuthorDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public FlightSearchDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }
public TestDomainService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IEagerFetchingRepository <Customer> repository, ILogger <TestDomainService> logger, IExceptionManager exceptionManager) : base(unitOfWorkScopeFactory, repository, logger, exceptionManager) { repository.DataStoreName = "TestDbContext"; }
public TeamsService(IUnitOfWorkScopeFactory unitOfWorkScopeFactory, IRepository<Team> repositoryOfTeam) { _unitOfWorkScopeFactory = unitOfWorkScopeFactory; _repositoryOfTeam = repositoryOfTeam; }
/// <summary> /// All services are injected into the constructor for testability. This is a practical implementation of the dependency inversion principle. https://en.wikipedia.org/wiki/Dependency_inversion_principle /// </summary> /// <param name="diveLocationService">Dive Location Domain Service (business service)</param> /// <param name="objectMapper">Automapper instance</param> /// <param name="logger">Logger</param> /// <param name="exceptionManager">Exception Manager</param> /// <param name="unitOfWorkScopeFactory">Unit Of Work Scope Factory</param> /// <param name="diveTypeService">Dive Type Service (business service)</param> public DiveService(IDiveTypeService diveTypeService, IDiveLocationService diveLocationService, IMapper objectMapper, ILogger <DiveService> logger, IExceptionManager exceptionManager, IUnitOfWorkScopeFactory unitOfWorkScopeFactory) : base(logger, exceptionManager, unitOfWorkScopeFactory) { _diveTypeService = diveTypeService; _diveLocationService = diveLocationService; _objectMapper = objectMapper; }
public OrdersService(IUnitOfWorkScopeFactory scopeFactory, ILogger <OrdersService> logger) { _scopeFactory = scopeFactory; _logger = logger; }
public MarketDomainService(IUnitOfWorkScopeFactory baseUnitOfWorkScopeFactory) : base(baseUnitOfWorkScopeFactory) { }