/// <summary>
 /// Initializes a new instance of the <see cref="DatasetStorageService" /> class.
 /// </summary>
 /// <param name="options">The current request context</param>
 /// <param name="sasTokens">The SAS token generation service.</param>
 public DatasetStorageService(
     IOptions <CosmosConfiguration> options,
     IOptions <StorageConfiguration> storageConfig,
     SasTokenService sasTokens,
     DatasetSearchService datasetSearchService)
     : base(options, sasTokens)
 {
     _datasetSearchService = datasetSearchService;
     _options       = options;
     _storageConfig = storageConfig.Value;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatasetEditStorageService" /> class.
 /// </summary>
 public DatasetEditStorageService(
     IOptions <CosmosConfiguration> cosmosConfig,
     IOptions <StorageConfiguration> storageConfig,
     SasTokenService sasTokens,
     DatasetOwnersService datasetOwnersService,
     DatasetStorageService datasetStorage)
     : base(cosmosConfig)
 {
     this.StorageConfig  = storageConfig.Value;
     this.SasTokens      = sasTokens;
     this.DatasetOwners  = datasetOwnersService;
     this.DatasetStorage = datasetStorage;
 }
 public UserDataStorageService(
     IOptions <CosmosConfiguration> options,
     SasTokenService sasTokens,
     ArmTemplatesMap armTemplatesMap,
     StaticAssetsMap staticAssetsMap,
     IOptions <WebServerConfiguration> webServerOptions,
     IOptions <BatchConfiguration> batchOptions,
     ValidationService validationService)
     : base(options, sasTokens)
 {
     ArmTemplatesMap        = armTemplatesMap;
     StaticAssetsMap        = staticAssetsMap;
     BatchOptions           = batchOptions;
     ValidationService      = validationService;
     WebServerConfiguration = webServerOptions.Value;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DatasetStorageService" /> class.
 /// </summary>
 /// <param name="options">The current request context</param>
 /// <param name="sasTokens">The SAS token generation service.</param>
 protected UserClaimsStorageService(IOptions <CosmosConfiguration> options, SasTokenService sasTokens)
     : base(options)
 {
     this.SasTokens = sasTokens;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileStorageService" /> class.
 /// </summary>
 /// <param name="options">The current request context</param>
 /// <param name="sasTokens">The SAS token generation service.</param>
 public FileStorageService(IOptions <CosmosConfiguration> options, SasTokenService sasTokens)
     : base(options)
 {
     this.SasTokens = sasTokens;
 }