public TenantOperations(ITableStorageClient tableStorageClient, IBlobStorageClient blobStorageClient, IAzureManagementClient azureManagementClient, IAppConfigurationClient appConfigurationClient, AppConfig config) { this.tableStorageClient = tableStorageClient; this.blobStorageClient = blobStorageClient; this.azureManagementClient = azureManagementClient; this.appConfigurationClient = appConfigurationClient; this.config = config; }
public UserTenantContainer(ITableStorageClient tableStorageClient, ILogger <UserTenantContainer> logger, AppConfig config, IGrafanaClient grafanaClient, IKeyVaultClient keyVaultClient) : base(tableStorageClient) { this.logger = logger; this.config = config; this.grafanaClient = grafanaClient; this.keyVaultClient = keyVaultClient; }
public IoTHubMonitor(ITableStorageClient tableStorageClient, IBlobStorageClient blobStorageClient, IAzureManagementClient azureManagementClient, IAppConfigurationClient appConfigurationClient, AppConfig config) { this.tableStorageClient = tableStorageClient; this.blobStorageClient = blobStorageClient; this.azureManagementClient = azureManagementClient; this.appConfigurationClient = appConfigurationClient; this.config = config; }
public DeploymentHistoryMigration(IStorageClient client, ITableStorageClient tableStorageClient, AppConfig config, IDeployments deployments, IAppConfigurationClient appConfigurationClient) { this.client = client; this.tableStorageClient = tableStorageClient; this.config = config; this.deployments = deployments; this.appConfigurationClient = appConfigurationClient; }
/// <summary> /// Initializes a new instance of the <see cref="TableStorageEmailRepository"/> class. /// </summary> /// <param name="storageAccountSetting">primary key of storage account.</param> /// <param name="cloudStorageClient"> cloud storage client for table storage.</param> /// <param name="logger">logger.</param> /// <param name="mailAttachmentRepository">Instnce of the Mail Attachment Repository.</param> public TableStorageEmailRepository(IOptions <StorageAccountSetting> storageAccountSetting, ITableStorageClient cloudStorageClient, ILogger logger, IMailAttachmentRepository mailAttachmentRepository) { this.storageAccountSetting = storageAccountSetting?.Value ?? throw new System.ArgumentNullException(nameof(storageAccountSetting)); this.cloudStorageClient = cloudStorageClient ?? throw new System.ArgumentNullException(nameof(cloudStorageClient)); this.emailHistoryTable = this.cloudStorageClient.GetCloudTable("EmailHistory"); this.meetingHistoryTable = this.cloudStorageClient.GetCloudTable("MeetingHistory"); this.logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); this.mailAttachmentRepository = mailAttachmentRepository; }
public IoTHubMonitor(ITableStorageClient tableStorageClient, IBlobStorageClient blobStorageClient, IAzureManagementClient azureManagementClient, IAppConfigurationClient appConfigurationClient, AppConfig config, IKustoTableManagementClient kustoTableManagementClient, IDeviceGroupsConfigClient deviceGroupsConfigClient) { this.tableStorageClient = tableStorageClient; this.blobStorageClient = blobStorageClient; this.azureManagementClient = azureManagementClient; this.appConfigurationClient = appConfigurationClient; this.config = config; this.kustoTableManagementClient = kustoTableManagementClient; this.deviceGroupClient = deviceGroupsConfigClient; }
public StatusService( AppConfig config, ITableStorageClient tableStorage, IAzureB2cClient b2cClient) : base(config) { this.Dependencies = new Dictionary <string, IStatusOperation> { { "Table Storage", tableStorage }, }; }
public TenantOperations(ITableStorageClient tableStorageClient, IBlobStorageClient blobStorageClient, IAzureManagementClient azureManagementClient, IAppConfigurationClient appConfigurationClient, AppConfig config, IGrafanaClient grafanaClient, IKustoTableManagementClient kustoTableManagementClient, IIdentityGatewayClient identityGatewayClient, IKeyVaultClient keyVaultClient) { this.tableStorageClient = tableStorageClient; this.blobStorageClient = blobStorageClient; this.azureManagementClient = azureManagementClient; this.appConfigurationClient = appConfigurationClient; this.config = config; this.grafanaClient = grafanaClient; this.kustoTableManagementClient = kustoTableManagementClient; this.identityGatewayClient = identityGatewayClient; this.keyVaultClient = keyVaultClient; }
public AlertingContainer( ITableStorageClient tableStorageClient, ITenantContainer tenantContainer, IStreamAnalyticsHelper streamAnalyticsHelper, IRunbookHelper runbookHelper, IStorageClient cosmosDb, IAppConfigurationClient appConfig) { this.tenantContainer = tenantContainer; this.streamAnalyticsHelper = streamAnalyticsHelper; this.runbookHelper = runbookHelper; this.cosmosDb = cosmosDb; this.appConfig = appConfig; this.tableStorageClient = tableStorageClient; }
public TableStorageClientTest() { this.mockConfig = new Mock <AppConfig>(); this.mockTable = new Mock <CloudTable>(this.mockTableUri); this.mockTableClient = new Mock <CloudTableClient>(this.mockTableUri, new StorageCredentials()); this.mockTableClient .Setup(x => x.GetTableReference( It.IsAny <string>())) .Returns(this.mockTable.Object); this.mockFactory = new Mock <ICloudTableClientFactory>(); this.mockFactory .Setup(x => x.Create()) .Returns(this.mockTableClient.Object); this.client = new TableStorageClient(this.mockFactory.Object); }
public TenantContainer( IHttpContextAccessor httpContextAccessor, ILogger <TenantContainer> logger, IRunbookHelper runbookHelper, IStorageClient cosmosClient, ITableStorageClient tableStorageClient, IIdentityGatewayClient identityGatewayClient, IDeviceGroupsConfigClient deviceGroupConfigClient, IAppConfigurationClient appConfigHelper) { this.logger = logger; this.runbookHelper = runbookHelper; this.cosmosClient = cosmosClient; this.tableStorageClient = tableStorageClient; this.identityGatewayClient = identityGatewayClient; this.deviceGroupClient = deviceGroupConfigClient; this.appConfigClient = appConfigHelper; }
public StatusService( AppConfig config, ILogger <StatusService> logger, IIdentityGatewayClient identityGatewayClient, IDeviceGroupsConfigClient deviceGroupsConfigClient, IStorageClient cosmosClient, ITableStorageClient tableStorageClient, IRunbookHelper runbookHelper, IAppConfigurationClient appConfigClient) : base(config) { this.Dependencies = new Dictionary <string, IStatusOperation> { { "CosmosDb", cosmosClient }, { "Tenant Runbooks", runbookHelper }, { "Table Storage", tableStorageClient }, { "Identity Gateway", identityGatewayClient }, { "Config", deviceGroupsConfigClient }, { "App Config", appConfigClient }, }; }
/// <summary> /// Initializes a new instance of the <see cref="TableStorageEmailRepository"/> class. /// </summary> /// <param name="storageAccountSetting">primary key of storage account.</param> /// <param name="cloudStorageClient"> cloud storage client for table storage.</param> /// <param name="logger">logger.</param> /// <param name="mailAttachmentRepository">Instnce of the Mail Attachment Repository.</param> public TableStorageEmailRepository(IOptions <StorageAccountSetting> storageAccountSetting, ITableStorageClient cloudStorageClient, ILogger logger, IMailAttachmentRepository mailAttachmentRepository) { this.storageAccountSetting = storageAccountSetting?.Value ?? throw new System.ArgumentNullException(nameof(storageAccountSetting)); this.cloudStorageClient = cloudStorageClient ?? throw new System.ArgumentNullException(nameof(cloudStorageClient)); var emailHistoryTableName = storageAccountSetting?.Value?.EmailHistoryTableName; var meetingHistoryTableName = storageAccountSetting?.Value?.MeetingHistoryTableName; if (string.IsNullOrEmpty(emailHistoryTableName)) { throw new ArgumentNullException(nameof(storageAccountSetting), "EmailHistoryTableName property from StorageAccountSetting can't be null/empty. Please provide the value in appsettings.json file."); } if (string.IsNullOrEmpty(meetingHistoryTableName)) { throw new ArgumentNullException(nameof(storageAccountSetting), "MeetingHistoryTableName property from StorageAccountSetting can't be null/empty. Please provide the value in appsettings.json file"); } this.emailHistoryTable = this.cloudStorageClient.GetCloudTable(emailHistoryTableName); this.meetingHistoryTable = this.cloudStorageClient.GetCloudTable(meetingHistoryTableName); this.logger = logger ?? throw new System.ArgumentNullException(nameof(logger)); this.mailAttachmentRepository = mailAttachmentRepository; }
public TenantContainer( ILogger <TenantContainer> logger, IRunbookHelper runbookHelper, IStorageClient cosmosClient, ITableStorageClient tableStorageClient, IIdentityGatewayClient identityGatewayClient, IDeviceGroupsConfigClient deviceGroupConfigClient, IAppConfigurationClient appConfigHelper, IBlobStorageClient blobStorageClient, AppConfig config, IAzureManagementClient azureManagementClient) { this.logger = logger; this.runbookHelper = runbookHelper; this.cosmosClient = cosmosClient; this.tableStorageClient = tableStorageClient; this.identityGatewayClient = identityGatewayClient; this.deviceGroupClient = deviceGroupConfigClient; this.appConfigClient = appConfigHelper; this.blobStorageClient = blobStorageClient; this.config = config; this.azureManagementClient = azureManagementClient; }
/// <summary> /// Initializes a new instance of the <see cref="MailTemplateRepository"/> class. /// </summary> /// <param name="logger">logger.</param> /// <param name="cloudStorageClient">cloud storage client for blob storage.</param> /// <param name="tableStorageClient">cloud storage client for table storage.</param> /// <param name="storageAccountSetting">primary key of storage account.</param> public MailTemplateRepository( ILogger logger, ICloudStorageClient cloudStorageClient, ITableStorageClient tableStorageClient, IOptions <StorageAccountSetting> storageAccountSetting) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.cloudStorageClient = cloudStorageClient ?? throw new ArgumentNullException(nameof(cloudStorageClient)); this.tableStorageClient = tableStorageClient ?? throw new ArgumentNullException(nameof(tableStorageClient)); if (storageAccountSetting is null) { throw new ArgumentNullException(nameof(storageAccountSetting)); } if (string.IsNullOrWhiteSpace(storageAccountSetting?.Value?.MailTemplateTableName)) { this.logger.WriteException(new ArgumentException("MailTemplateTableName")); throw new ArgumentException("MailTemplateTableName"); } this.cloudTable = this.tableStorageClient.GetCloudTable(storageAccountSetting.Value.MailTemplateTableName); }
public UserTenantContainer(ITableStorageClient tableStorageClient, ILogger <UserTenantContainer> logger) : base(tableStorageClient) { this.logger = logger; }
public AzureStorageChatMessageRepository(ITableStorageClient client) { _client = client; }
public SystemAdminContainer(ITableStorageClient tableStorageClient, ILogger <SystemAdminContainer> logger) : base(tableStorageClient) { this.logger = logger; }
public UserContainer(ITableStorageClient tableStorageClient) { this.TableStorageClient = tableStorageClient; }
public AzureStorageActiveUserRepository(ITableStorageClient client) { _client = client; }