/// <summary> /// Store archive /// </summary> /// <param name="storagePluginName">Storage plugin name to use</param> /// <param name="storeSection">Store settings section</param> /// <param name="archiveStream">Archive stream to store</param> private void StoreArchive(string storagePluginName, IConfiguration storeSection, Stream archiveStream, DateTime startDate, DateTime endDate) { _logger.Information($"Storing archive using '{storagePluginName}' storage plugin..."); // Store archive stream var storage = _pluginFactory.GetStorage(storagePluginName, storeSection); storage.Store(archiveStream, startDate, endDate); }