using Microsoft.Extensions.DependencyInjection; using StellaOps.Vexer.Attestation.Dsse; using StellaOps.Vexer.Attestation.Transparency; using StellaOps.Vexer.Core; namespace StellaOps.Vexer.Attestation.Extensions; public static class VexAttestationServiceCollectionExtensions { public static IServiceCollection AddVexAttestation(this IServiceCollection services) { services.AddSingleton(); services.AddSingleton(); return services; } public static IServiceCollection AddVexRekorClient(this IServiceCollection services, Action configure) { ArgumentNullException.ThrowIfNull(configure); services.Configure(configure); services.AddHttpClient(); return services; } }