Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

AuthConfigurationExtension.cs 535B

123456789101112
  1. namespace Diligent.WebAPI.Host.Extensions
  2. {
  3. [ExcludeFromCodeCoverage]
  4. public static class AuthConfigurationExtension
  5. {
  6. public static void ConfigureAuth(this WebApplicationBuilder builder)
  7. {
  8. builder.Services.Configure<AuthorizationSettings>(builder.Configuration.GetSection("Authorization"));
  9. builder.Services.Configure<ScreeningTestSettings>(builder.Configuration.GetSection("ScreeningTest"));
  10. builder.Services.AddScoped<IUserService, UserService>();
  11. }
  12. }}