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 505B

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