コード例 #1
0
        public GenericCrudService(ILogger <GenericCrudService <TD, T> > logger,
                                  ILedgerLocalDbFullDomainRepository <T> genRepository,
                                  ILedgerLocalDbFullDomainUnitOfWork unitOfWork,
                                  MapperConfiguration mapperConfiguration)
        {
            _logger = logger;

            _genRepository = genRepository;
            _unitOfWork    = unitOfWork;

            _mapper = mapperConfiguration.CreateMapper();
        }
コード例 #2
0
 public AttributeService(ILogger <AttributeService> logger,
                         ILedgerLocalDbFullDomainRepository <Genericattribute> attributeRepository,
                         ILedgerLocalDbFullDomainRepository <Genericattributevalue> attributeValueRepository,
                         ILedgerLocalDbFullDomainRepository <Genericattributetype> attributeTypeRepository,
                         ILedgerLocalDbFullDomainUnitOfWork unitOfWork,
                         ILedgerLocalBulkOperator LedgerLocalBulkOperator)
 {
     _logger = logger;
     _attributeRepository      = attributeRepository;
     _attributeValueRepository = attributeValueRepository;
     _attributeTypeRepository  = attributeTypeRepository;
     _unitOfWork = unitOfWork;
     _LedgerLocalBulkOperator = LedgerLocalBulkOperator;
 }
コード例 #3
0
        public CustomerService(ILogger <CustomerService> logger,
                               ILedgerLocalDbFullDomainRepository <User> userRepository,
                               ILedgerLocalDbFullDomainRepository <People> peopleRepository,
                               ILedgerLocalDbFullDomainUnitOfWork unitOfWork,
                               MapperConfiguration mapperConfiguration)
        {
            _logger = logger;

            _userRepository   = userRepository;
            _unitOfWork       = unitOfWork;
            _peopleRepository = peopleRepository;

            _mapper = mapperConfiguration.CreateMapper();
        }
コード例 #4
0
        public ParticipateBusinessService(IBlockTradeService blockTradeService,
                                          ICommonMessageService commonMessageService,
                                          ILimitOrderService limitOrderService,
                                          ILedgerLocalDbFullDomainRepository <Transactions> transRepository,
                                          ILedgerLocalDbFullDomainRepository <Tokenprice> tokenpriceRepository,
                                          IAccountService accountService,
                                          IDbContextService dbContextService,
                                          ILedgerLocalDbFullDomainUnitOfWork unitOfWork,
                                          ILogger <ParticipateBusinessService> logger)
        {
            _accountService       = accountService;
            _blockTradeService    = blockTradeService;
            _commonMessageService = commonMessageService;
            _tokenpriceRepository = tokenpriceRepository;
            _transRepository      = transRepository;
            _unitOfWork           = unitOfWork;

            _dbContextService = dbContextService;

            _limitOrderService = limitOrderService;

            _logger = logger;
        }