/// <summary> /// Initializes a new instance of the <see cref="GetSendNotificationParamsService"/> class. /// </summary> /// <param name="companyCommunicatorSendFunctionOptions">The Company Communicator send function options.</param> /// <param name="sendingNotificationDataRepository">The sending notification data repository.</param> /// <param name="userDataRepository">The user data repository.</param> /// <param name="createUserConversationService">The create user conversation service.</param> /// <param name="delaySendingNotificationService">The delay sending notification service.</param> /// <param name="manageResultDataService">The manage result data service.</param> public GetSendNotificationParamsService( IOptions <CompanyCommunicatorSendFunctionOptions> companyCommunicatorSendFunctionOptions, SendingNotificationDataRepository sendingNotificationDataRepository, UserDataRepository userDataRepository, CreateUserConversationService createUserConversationService, DelaySendingNotificationService delaySendingNotificationService, ManageResultDataService manageResultDataService) { this.maxNumberOfAttempts = companyCommunicatorSendFunctionOptions.Value.MaxNumberOfAttempts; this.sendRetryDelayNumberOfSeconds = companyCommunicatorSendFunctionOptions.Value.SendRetryDelayNumberOfSeconds; this.sendingNotificationDataRepository = sendingNotificationDataRepository; this.userDataRepository = userDataRepository; this.createUserConversationService = createUserConversationService; this.delaySendingNotificationService = delaySendingNotificationService; this.manageResultDataService = manageResultDataService; }
/// <summary> /// Initializes a new instance of the <see cref="CompanyCommunicatorSendFunction"/> class. /// </summary> /// <param name="companyCommunicatorSendFunctionOptions">The Company Communicator send function options.</param> /// <param name="precheckService">The service to precheck and determine if the queue message should be processed.</param> /// <param name="getSendNotificationParamsService">The service to get the parameters needed to send the notification.</param> /// <param name="sendNotificationService">The send notification service.</param> /// <param name="delaySendingNotificationService">The delay sending notification service.</param> /// <param name="manageResultDataService">The manage result data service.</param> public CompanyCommunicatorSendFunction( IOptions <CompanyCommunicatorSendFunctionOptions> companyCommunicatorSendFunctionOptions, PrecheckService precheckService, GetSendNotificationParamsService getSendNotificationParamsService, SendNotificationService sendNotificationService, DelaySendingNotificationService delaySendingNotificationService, ManageResultDataService manageResultDataService) { this.maxNumberOfAttempts = companyCommunicatorSendFunctionOptions.Value.MaxNumberOfAttempts; this.sendRetryDelayNumberOfSeconds = companyCommunicatorSendFunctionOptions.Value.SendRetryDelayNumberOfSeconds; this.precheckService = precheckService; this.getSendNotificationParamsService = getSendNotificationParamsService; this.sendNotificationService = sendNotificationService; this.delaySendingNotificationService = delaySendingNotificationService; this.manageResultDataService = manageResultDataService; }