Beispiel #1
0
        public ContractService(
            IServiceProvider serviceProvider,
            IOrganizationService organizationService,
            IOrganizationAccountManagerService amService,
            IOrganizationProjectManagerService pmService,
            IOrganizationRecruiterService reService,
            IOrganizationMarketerService maService,
            IOrganizationContractorService coService,
            IOrganizationCustomerService cuService,
            IUserInfo userInfo,
            MultiContractEventHandler multiHandler,
            StoryEventHandlers storyEvents,
            ILogger <ContractService> logger) : base(serviceProvider)
        {
            _organizationService = organizationService;
            _amService           = amService;
            _pmService           = pmService;
            _reService           = reService;
            _maService           = maService;
            _coService           = coService;
            _cuService           = cuService;
            _userInfo            = userInfo;
            _logger = logger;

            _projectRepository    = UnitOfWork.RepositoryAsync <Project>();
            _recruitingAgreements = UnitOfWork.RepositoryAsync <RecruitingAgreement>();
            _customerAccounts     = UnitOfWork.RepositoryAsync <CustomerAccount>();

            AddEventHandler(multiHandler, storyEvents);
        }
Beispiel #2
0
        public ProposalService(
            IServiceProvider serviceProvider,
            ILogger <ProposalService> logger,
            MultiProposalEventHandler handler,
            MultiContractEventHandler contractEvents,
            StoryEventHandlers storyEvents,
            IUserInfo userInfo) : base(serviceProvider)
        {
            _organizationRepository = UnitOfWork
                                      .RepositoryAsync <Organization>();

            _projectRepository = UnitOfWork
                                 .RepositoryAsync <Project>();

            _proposalAcceptance = UnitOfWork
                                  .RepositoryAsync <ProposalAcceptance>();

            _logger   = logger;
            _userInfo = userInfo;
            AddEventHandler(contractEvents, handler, storyEvents);
        }