/// <summary>
 /// Initializes a new instance of the <see cref="CreateNotificationsService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="operationsControlClient">The operations control client.</param>
 public CreateNotificationsService(
     IMarainServicesTenancy marainServicesTenancy,
     IMarainOperationsControl operationsControlClient)
 {
     this.marainServicesTenancy   = marainServicesTenancy;
     this.operationsControlClient = operationsControlClient;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CompleteLongRunningOperationActivity"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="operationsControl">The operations control client.</param>
 public CompleteLongRunningOperationActivity(
     IMarainServicesTenancy marainServicesTenancy,
     IMarainOperationsControl operationsControl)
 {
     this.operationsControl     = operationsControl;
     this.marainServicesTenancy = marainServicesTenancy;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateNotificationsService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="operationsControlClient">The operations control client.</param>
 public BatchReadStatusUpdateService(
     IMarainServicesTenancy marainServicesTenancy,
     IMarainOperationsControl operationsControlClient)
 {
     this.marainServicesTenancy   = marainServicesTenancy;
     this.operationsControlClient = operationsControlClient;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ResourceAccessRuleSetService"/> class.
 /// </summary>
 /// <param name="tenancyHelper">The tenant provider.</param>
 /// <param name="permissionsStoreFactory">Provides access to the permissions store.</param>
 public ResourceAccessRuleSetService(
     IMarainServicesTenancy tenancyHelper,
     IPermissionsStoreFactory permissionsStoreFactory)
 {
     this.tenancyHelper           = tenancyHelper ?? throw new ArgumentNullException(nameof(tenancyHelper));
     this.permissionsStoreFactory = permissionsStoreFactory ?? throw new ArgumentNullException(nameof(permissionsStoreFactory));
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EngineService"/> class.
 /// </summary>
 /// <param name="workflowEngineFactory">The workflow engine factory.</param>
 /// <param name="workflowStoreFactory">The workflow store factory.</param>
 /// <param name="marainServicesTenancy">The tenancy services.</param>
 public EngineService(
     ITenantedWorkflowEngineFactory workflowEngineFactory,
     ITenantedWorkflowStoreFactory workflowStoreFactory,
     IMarainServicesTenancy marainServicesTenancy)
 {
     this.workflowEngineFactory = workflowEngineFactory;
     this.marainServicesTenancy = marainServicesTenancy;
     this.workflowStoreFactory  = workflowStoreFactory;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="CreateOrUpdateTemplateService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="tenantedTemplateStoreFactory">Template store factory.</param>
 public CreateOrUpdateTemplateService(
     IMarainServicesTenancy marainServicesTenancy,
     ITenantedNotificationTemplateStoreFactory tenantedTemplateStoreFactory)
 {
     this.marainServicesTenancy = marainServicesTenancy
                                  ?? throw new ArgumentNullException(nameof(marainServicesTenancy));
     this.tenantedTemplateStoreFactory = tenantedTemplateStoreFactory
                                         ?? throw new ArgumentNullException(nameof(tenantedTemplateStoreFactory));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkNotificationAsReadService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="managementApiClient">The client for the management API.</param>
 public MarkNotificationAsReadService(
     IUserNotificationsManagementClient managementApiClient,
     IMarainServicesTenancy marainServicesTenancy)
 {
     this.marainServicesTenancy = marainServicesTenancy
                                  ?? throw new ArgumentNullException(nameof(marainServicesTenancy));
     this.managementApiClient = managementApiClient
                                ?? throw new ArgumentNullException(nameof(managementApiClient));
 }
Esempio n. 8
0
 /// <summary>
 /// Creates an <see cref="OperationsStatusOpenApiService"/>.
 /// </summary>
 /// <param name="tenancyHelper">The tenant provider.</param>
 /// <param name="operationalStatusTasks">Underlying tasks.</param>
 /// <param name="linkResolver">The link resolver.</param>
 public OperationsStatusOpenApiService(
     IMarainServicesTenancy tenancyHelper,
     IOperationsStatusTasks operationalStatusTasks,
     IOpenApiWebLinkResolver linkResolver)
 {
     this.tenancyHelper = tenancyHelper ?? throw new ArgumentNullException(nameof(tenancyHelper));
     this.tasks         = operationalStatusTasks ?? throw new ArgumentNullException(nameof(operationalStatusTasks));
     this.linkResolver  = linkResolver ?? throw new ArgumentNullException(nameof(linkResolver));
 }
Esempio n. 9
0
 /// <summary>
 /// Creates a <see cref="OperationsControlOpenApiService"/>.
 /// </summary>
 /// <param name="tenancyHelper">The tenancy helper.</param>
 /// <param name="tasks">The underlying tasks that implement the service functionality.</param>
 /// <param name="uriTemplateProvider">Resolves URLs to other services.</param>
 public OperationsControlOpenApiService(
     IMarainServicesTenancy tenancyHelper,
     IOperationsControlTasks tasks,
     IOpenApiExternalServices uriTemplateProvider)
 {
     this.tenancyHelper           = tenancyHelper;
     this.tasks                   = tasks;
     this.externalServiceResolver = uriTemplateProvider;
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClaimPermissionsService"/> class.
 /// </summary>
 /// <param name="permissionsStoreFactory">Provides access to the permissions store.</param>
 /// <param name="marainServicesTenancy">The Marain services tenancy provider.</param>
 /// <param name="serializerSettingsProvider">The serializer settings provider.</param>
 public ClaimPermissionsService(
     IPermissionsStoreFactory permissionsStoreFactory,
     IMarainServicesTenancy marainServicesTenancy,
     IJsonSerializerSettingsProvider serializerSettingsProvider)
 {
     this.permissionsStoreFactory    = permissionsStoreFactory ?? throw new ArgumentNullException(nameof(permissionsStoreFactory));
     this.marainServicesTenancy      = marainServicesTenancy ?? throw new ArgumentNullException(nameof(marainServicesTenancy));
     this.serializerSettingsProvider = serializerSettingsProvider ?? throw new ArgumentNullException(nameof(serializerSettingsProvider));
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MessageIngestionService" /> class.
 /// </summary>
 /// <param name="serializerSettingsProvider">Serialization settings provider.</param>
 /// <param name="propertyBagFactory">Factory to use when creating initial IPropertyBag instances for workflow message envelopes.</param>
 /// <param name="operationsControl">Allows definition and control of long-running operations.</param>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 public MessageIngestionService(
     IJsonSerializerSettingsProvider serializerSettingsProvider,
     IPropertyBagFactory propertyBagFactory,
     IMarainOperationsControl operationsControl,
     IMarainServicesTenancy marainServicesTenancy)
 {
     this.marainServicesTenancy      = marainServicesTenancy;
     this.operationsControl          = operationsControl;
     this.serializerSettingsProvider = serializerSettingsProvider;
     this.propertyBagFactory         = propertyBagFactory;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="GenerateTemplateService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="tenantedTemplateStoreFactory">Template store factory.</param>
 /// <param name="generateTemplateComposer">The composer to generate the templated notification per communication channel.</param>
 /// <param name="logger">The logger for GenerateTemplateService.</param>
 public GenerateTemplateService(
     IMarainServicesTenancy marainServicesTenancy,
     ITenantedNotificationTemplateStoreFactory tenantedTemplateStoreFactory,
     IGenerateTemplateComposer generateTemplateComposer,
     ILogger <GenerateTemplateService> logger)
 {
     this.marainServicesTenancy        = marainServicesTenancy;
     this.tenantedTemplateStoreFactory = tenantedTemplateStoreFactory;
     this.logger = logger;
     this.generateTemplateComposer = generateTemplateComposer;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetNotificationService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="userNotificationStoreFactory">The user notification store factory.</param>
 /// <param name="userNotificationMapper">The mapper for the result notification.</param>
 public GetNotificationService(
     IMarainServicesTenancy marainServicesTenancy,
     ITenantedUserNotificationStoreFactory userNotificationStoreFactory,
     UserNotificationMapper userNotificationMapper)
 {
     this.marainServicesTenancy = marainServicesTenancy
                                  ?? throw new ArgumentNullException(nameof(marainServicesTenancy));
     this.userNotificationStoreFactory = userNotificationStoreFactory
                                         ?? throw new ArgumentNullException(nameof(userNotificationStoreFactory));
     this.userNotificationMapper = userNotificationMapper
                                   ?? throw new ArgumentNullException(nameof(userNotificationMapper));
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of <see cref="GetTemplateService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="tenantedTemplateStoreFactory">Template store factory.</param>
 /// <param name="webPushTemplateMapper">WebPush Template Mapper.</param>
 /// <param name="emailTemplateMapper">Email Template Mapper.</param>
 /// <param name="smsTemplateMapper"><see cref="SmsTemplateMapper"/>.</param>
 public GetTemplateService(
     IMarainServicesTenancy marainServicesTenancy,
     ITenantedNotificationTemplateStoreFactory tenantedTemplateStoreFactory,
     WebPushTemplateMapper webPushTemplateMapper,
     EmailTemplateMapper emailTemplateMapper,
     SmsTemplateMapper smsTemplateMapper)
 {
     this.marainServicesTenancy        = marainServicesTenancy;
     this.tenantedTemplateStoreFactory = tenantedTemplateStoreFactory;
     this.webPushTemplateMapper        = webPushTemplateMapper;
     this.emailTemplateMapper          = emailTemplateMapper;
     this.smsTemplateMapper            = smsTemplateMapper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetNotificationsForUserService"/> class.
 /// </summary>
 /// <param name="marainServicesTenancy">Marain tenancy services.</param>
 /// <param name="userNotificationStoreFactory">The user notification store factory.</param>
 /// <param name="userNotificationsMapper">The user notifications mapper.</param>
 /// <param name="managementApiClient">The client for the management API.</param>
 /// <param name="exceptionsInstrumentation">The <see cref="IExceptionsInstrumentation{T}"/> for this class.</param>
 /// <param name="logger">The logger.</param>
 public GetNotificationsForUserService(
     IMarainServicesTenancy marainServicesTenancy,
     ITenantedUserNotificationStoreFactory userNotificationStoreFactory,
     UserNotificationsMapper userNotificationsMapper,
     IUserNotificationsManagementClient managementApiClient,
     IExceptionsInstrumentation <GetNotificationsForUserService> exceptionsInstrumentation,
     ILogger <GetNotificationsForUserService> logger)
 {
     this.marainServicesTenancy = marainServicesTenancy
                                  ?? throw new ArgumentNullException(nameof(marainServicesTenancy));
     this.userNotificationStoreFactory = userNotificationStoreFactory
                                         ?? throw new ArgumentNullException(nameof(userNotificationStoreFactory));
     this.userNotificationsMapper = userNotificationsMapper
                                    ?? throw new ArgumentNullException(nameof(userNotificationsMapper));
     this.managementApiClient = managementApiClient
                                ?? throw new ArgumentNullException(nameof(managementApiClient));
     this.logger = logger
                   ?? throw new ArgumentNullException(nameof(logger));
     this.exceptionsInstrumentation = exceptionsInstrumentation
                                      ?? throw new ArgumentNullException(nameof(exceptionsInstrumentation));
 }