public UsersController(IUserService userService, IMSGraphService graphService, IMemoryCache memoryCache, IMapper mapper) : base(userService, memoryCache) { this.userService = userService; this.graphService = graphService; this.mapper = mapper; }
/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class. /// </summary> /// <param name="context">Database context.</param> /// <param name="logger">Logger.</param> /// <param name="configuration">Configuration containing App Settings.</param> /// <param name="graph">Microsoft Graph service.</param> /// <param name="recaptchaService">Recaptcha service.</param> public UsersController(CustomDbContext context, ILogger <UsersController> logger, IConfiguration configuration, IMSGraphService graph, IReCaptchaService recaptchaService) { this.context = context; this.logger = logger; this.graph = graph; this.recaptchaService = recaptchaService; usingB2BAuth = configuration?.GetValue <string>("AuthScheme") == "AzureAdB2B"; }
public TodoListService(ITokenAcquisition tokenAcquisition, HttpClient httpClient, IConfiguration configuration, IHttpContextAccessor contextAccessor, IMSGraphService graphService, IAutomatedGraphClient automatedGraphClient) { _httpClient = httpClient; _tokenAcquisition = tokenAcquisition; _contextAccessor = contextAccessor; _graphService = graphService; _automatedGraphClient = automatedGraphClient; _TodoListScope = configuration["TodoList:TodoListScope"]; _TodoListReadScope = configuration["TodoList:ReadScope"]; _TodoListBaseAddress = configuration["TodoList:TodoListBaseAddress"]; }
public UserProfileController(ITokenAcquisition tokenAcquisition, IMSGraphService MSGraphService) { this.tokenAcquisition = tokenAcquisition; this.graphService = MSGraphService; }
public HomeController(ILogger <HomeController> logger, IMSGraphService MSGraphServiceClient) { this._logger = logger; this._msGraphClient = MSGraphServiceClient; }
public HomeController(ILogger <HomeController> logger, ITokenAcquisition tokenAcquisition, IMSGraphService graphService) { _logger = logger; _tokenAcquisition = tokenAcquisition; _graphService = graphService; }
public TodoListController(ITodoItemService todoItemService, ITokenAcquisition tokenAcquisition, IMSGraphService msGraphService) { _todoItemService = todoItemService; _tokenAcquisition = tokenAcquisition; _msGraphService = msGraphService; }
public InfoController(ITokenAcquisition tokenAcquisition, IMSGraphService msGraphService) { //_todoItemService = todoItemService; _tokenAcquisition = tokenAcquisition; _msGraphService = msGraphService; }