コード例 #1
0
 public InventionService(
     IRoleService roleService,
     IInventionFactory factory,
     IInventionUpdater updater,
     IAuditService auditService,
     IInventionDuplicateValidator inventionDuplicateValidator,
     IInventionPredicateFactory inventionPredicateFactory,
     ITokenService tokenService,
     IUnitOfWork unitOfWork,
     ILogService logService,
     IAppSettingsService appSettingsService,
     IInventAppContext inventAppContext
     ) : base(
         roleService,
         factory,
         updater,
         auditService,
         inventionDuplicateValidator,
         tokenService,
         unitOfWork,
         logService,
         appSettingsService,
         inventAppContext
         )
 {
     _inventionPredicateFactory = inventionPredicateFactory;
 }
コード例 #2
0
        public ReportService(
            ITokenService tokenService,
            IUnitOfWork unitOfWork,
            ILogService logService,
            IInventionPredicateFactory inventionPredicateFactory,
            IAppSettingsService appSettingsService,
            IUserPredicateFactory userPredicateFactory,
            ITemplateFactory templateFactory,
            ITemplateService templateService,
            IEmailFactory emailFactory,
            IEmailService emailService,
            IInventAppContext inventAppContext
            ) : base(
                tokenService,
                unitOfWork,
                logService,
                inventAppContext
                )
        {
            _inventionPredicateFactory = inventionPredicateFactory;
            _appSettingsService        = appSettingsService;
            _userPredicateFactory      = userPredicateFactory;
            _templateFactory           = templateFactory;
            _templateService           = templateService;
            _emailFactory = emailFactory;
            _emailService = emailService;

            Directory.CreateDirectory($"{_appSettingsService.ReportsDirectory}");
        }
コード例 #3
0
 public InventionDuplicateValidator(IInventionPredicateFactory inventionPredicateFactory, IUnitOfWork unitOfWork)
 {
     _inventionPredicateFactory = inventionPredicateFactory;
     _unitOfWork        = unitOfWork;
     _aggregateRootName = nameof(Invention);
 }