| 123456789101112131415161718 |
- using Microsoft.AspNetCore.Authentication;
- using Microsoft.Extensions.DependencyInjection;
- namespace Admin.NET.Plugin.AiDOP.DataPlatform.UnifiedIngress;
- public static class MdpIngestServiceCollectionExtensions
- {
- public static IServiceCollection AddMdpUnifiedIngress(this IServiceCollection services)
- {
- services.AddTransient<MdpIngestReceiveService>();
- services.AddScoped<MdpIngestAdmissionStore>();
- services.AddScoped<ISecretStore, MdpIngestSecretStore>();
- services.AddSingleton<IMdpIngestSecretProvider, EnvironmentMdpIngestSecretProvider>();
- services.AddAuthentication().AddScheme<AuthenticationSchemeOptions, MdpIngestAuthenticationHandler>(
- MdpIngestProtocol.AuthenticationScheme, _ => { });
- return services;
- }
- }
|