public FetchGraphUserHandler(HttpClient httpClient, IUserRepository repository, IConfiguration config, INotifier notifier, IGraphAuthService graphAuthService ) { this._repository = repository; this._httpClient = httpClient; this._config = config; this._notifier = notifier; this._graphAuthService = graphAuthService; _httpClient.DefaultRequestHeaders .Accept .Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public ImportChatMessagesIntoTeamsHandler(HttpClient httpClient, IUserRepository repository, IConfiguration config, INotifier notifier, IGraphAuthService graphAuthService) { this._repository = repository; this._httpClient = httpClient; this._config = config; this._notifier = notifier; this._graphAuthService = graphAuthService; this._apiCaller = new ProtectedApiCallHelper(httpClient); _httpClient.DefaultRequestHeaders .Accept .Add(new MediaTypeWithQualityHeaderValue("application/json")); }