コード例 #1
0
 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"));
 }
コード例 #2
0
 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"));
 }