/// <inheritdoc /> public override void LoadConfiguration(InstallerFileBundleProviderConfiguration configuration) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (configuration.ProviderType != ProviderType) { throw new ArgumentException($"Configuration with invalid type {configuration.ProviderType}, expected {ProviderType}."); } if (configuration.Parameters.TryGetValue(nameof(Path), out var path)) { Path = path; } }
/// <summary> /// Load the given configuration. /// </summary> /// <param name="configuration">Configuration to load.</param> public abstract void LoadConfiguration(InstallerFileBundleProviderConfiguration configuration);