MdpPurchaseHandoffServiceCollectionExtensions.cs 605 B

123456789101112131415
  1. using Microsoft.AspNetCore.Authentication;
  2. using Microsoft.Extensions.DependencyInjection;
  3. namespace Admin.NET.Plugin.AiDOP.DataPlatform.UnifiedIngress;
  4. public static class MdpPurchaseHandoffServiceCollectionExtensions
  5. {
  6. public static IServiceCollection AddMdpPurchaseHandoff(this IServiceCollection services)
  7. {
  8. services.AddScoped<MdpPurchaseHandoffService>();
  9. services.AddAuthentication().AddScheme<AuthenticationSchemeOptions, MdpPurchaseHandoffAuthenticationHandler>(
  10. MdpPurchaseHandoffAuthenticationHandler.SchemeName, _ => { });
  11. return services;
  12. }
  13. }