/// <summary> /// Initializes a new instance of the <see cref="AzureBlobStorageMaintainer"/> class. /// </summary> /// <param name="parser">The application configuration object.</param> public AzureBlobStorageMaintainer(ConfigurationParser parser) { this.config = parser.Get(); var connectionString = string.Format(this.config.AzureBlob.ConnectionString, this.config.AzureBlob.AccountName, this.config.AzureBlob.AccountKey); this.storageClient = new BlobServiceClient(connectionString); }
/// <summary> /// Initializes a new instance of the <see cref="ArchiveWatchman"/> class. /// </summary> /// <param name="blobStorage">The Blob Storage.</param> /// <param name="config">Joseki Backend configuration.</param> public ArchiveWatchman(IBlobStorageMaintainer blobStorage, ConfigurationParser config) { this.blobStorage = blobStorage; this.config = config.Get(); }
/// <summary> /// Initializes a new instance of the <see cref="CveCache"/> class. /// </summary> /// <param name="config">Joseki configuration object.</param> /// <param name="db">Joseki database instance.</param> /// <param name="cache">In-memory cache.</param> public CveCache(ConfigurationParser config, JosekiDbContext db, IMemoryCache cache) { this.config = config.Get(); this.db = db; this.cache = cache; }
/// <summary> /// Initializes a new instance of the <see cref="MssqlJosekiDatabase"/> class. /// </summary> public MssqlJosekiDatabase(JosekiDbContext db, ConfigurationParser parser) { this.db = db; this.config = parser.Get(); }
/// <summary> /// Initializes a new instance of the <see cref="AccessControlController"/> class. /// </summary> /// <param name="config">ConfigurationParser.</param> /// <param name="services">DI container.</param> public AccessControlController(ConfigurationParser config, IServiceProvider services) { this.configuration = config.Get(); this.services = services; }
/// <summary> /// Initializes a new instance of the <see cref="AzureBlobStorageProcessor"/> class. /// </summary> /// <param name="config">The application configuration object.</param> public AzureBlobStorageProcessor(ConfigurationParser config) { this.config = config.Get(); }
/// <summary> /// Initializes a new instance of the <see cref="ScannerContainersWatchman"/> class. /// </summary> /// <param name="blobStorage">The Blob Storage.</param> /// <param name="scheduler">The scheduler assistant.</param> /// <param name="config">Joseki Backend configuration.</param> public ScannerContainersWatchman(IBlobStorageProcessor blobStorage, SchedulerAssistant scheduler, ConfigurationParser config) { this.blobStorage = blobStorage; this.scheduler = scheduler; this.config = config.Get(); }