// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { var b2cConfigurationSection = Configuration.GetSection("AzureAdB2C"); var b2cGraphService = new B2cGraphService( b2cExtensionsAppClientId: b2cConfigurationSection.GetValue <string>("B2cExtensionsAppClientId")); services.AddSingleton <B2cGraphService>(b2cGraphService); services.AddControllers(); services.AddRouting(options => { options.LowercaseUrls = true; }); }
public TerritoryController(ILogger <TerritoryController> logger, B2cGraphService b2cGraphService) { _logger = logger; _b2cGraphService = b2cGraphService; }
public UserModel(ILogger <UserModel> logger, B2cGraphService b2cGraphService) { this.logger = logger; this.b2cGraphService = b2cGraphService; }
public UserInvitationController(ILogger <UserInvitationController> logger, IUserInvitationRepository userInvitationRepository, B2cGraphService b2cGraphService) { this.logger = logger; this.userInvitationRepository = userInvitationRepository; this.b2cGraphService = b2cGraphService; }