public NewIdeaListener(IInitiativeMessageReceiver initiativeMessageReceiver,
                               IInitiativeMessageSender initiativeMessageSender,
                               IInitiativeService initiativeService,
                               IRemedyService remedyService,
                               IPeopleService peopleService,
                               IInitiativeStatusEtaService initiativeStatusEtaService,
                               Serilog.ILogger logger)
        {
            EnsureArg.IsNotNull(initiativeMessageReceiver);
            EnsureArg.IsNotNull(initiativeMessageSender);
            EnsureArg.IsNotNull(initiativeService);
            EnsureArg.IsNotNull(remedyService);
            EnsureArg.IsNotNull(peopleService);
            EnsureArg.IsNotNull(initiativeStatusEtaService);
            EnsureArg.IsNotNull(logger);

            _initiativeMessageReceiver  = initiativeMessageReceiver;
            _initiativeMessageSender    = initiativeMessageSender;
            _initiativeService          = initiativeService;
            _remedyService              = remedyService;
            _peopleService              = peopleService;
            _initiativeStatusEtaService = initiativeStatusEtaService;
            _logger = logger ?? throw new ArgumentNullException("logger");

            _logger.Information("Starting messsage pump for New Initiatives");
            initiativeMessageReceiver.ReceiveMessages(initiativeCreatedHandler: OnNewInitiative);
        }
示例#2
0
        public TaskController(ITaskService taskService, IInitiativeService initiativeService, IAuthorizationService authorizationService)
        {
            this.taskService = taskService;

            this.authorizationService = authorizationService;
            this.initiativeService    = initiativeService;
        }
示例#3
0
 public InitiativeController(IErrorService errorService, ApplicationUserManager userManager, IApplicationGroupService applicationGroupService,
                             IInitiativeService initiativeService, IApplicationRoleService appRoleService) : base(errorService)
 {
     this._initiativeService       = initiativeService;
     this._applicationGroupService = applicationGroupService;
     this._appRoleService          = appRoleService;
     _userManager = userManager;
 }
        public InitiativeCampaignStatus(ICampaignService campaignService,
                                        IInitiativeService initiativeService,
                                        IPushNotification notification,
                                        INotificationService notificationService)
        {
            Guard.NotNull(campaignService, nameof(campaignService));
            Guard.NotNull(initiativeService, nameof(initiativeService));
            Guard.NotNull(notification, nameof(notification));
            Guard.NotNull(notificationService, nameof(notificationService));

            _campaignService     = campaignService;
            _initiativeService   = initiativeService;
            _notification        = notification;
            _notificationService = notificationService;
        }
示例#5
0
 public InitiativeController(IInitiativeService initiativeService, ITaskService taskService)
 {
     this.initiativeService = initiativeService;
     this.taskService       = taskService;
 }
示例#6
0
 public InitiativesController(IInitiativeService _initiativeService, ILogger <InitiativesController> _logger)
 {
     initiativeService = _initiativeService;
     logger            = _logger;
 }
示例#7
0
 public InitiativesController(IInitiativeRepository repository, IMapper mapper, IInitiativeService service)
 {
     _repository = repository;
     _mapper     = mapper;
     _service    = service;
 }
示例#8
0
 public InitiativeController(IInitiativeService initiativeService, IStringLocalizer <ErrorStrings> errorLocalizer)
 {
     _initiativeService = initiativeService;
     _errorLocalizer    = errorLocalizer;
 }
示例#9
0
 public InitiativeController(IInitiativeService initiativeService)
 {
     _initiativeService = initiativeService;
 }