Example #1
0
 public SearchController(ISearchService service, IHubContext <SearchHub> hub, IAzureCredentials azureCredentials)
 {
     _service          = service;
     _hub              = hub;
     _azureCredentials = azureCredentials;
 }
Example #2
0
 public SearchHub(ISearchService service, IAzureCredentials azureCredentials)
 {
     _azureCredentials = azureCredentials;
     _service          = service.ConfigureCredentials(azureCredentials.ApiKey, azureCredentials.StorageKey, azureCredentials.MediaServicesAuth);
 }
 public AzureAuthenticationClient(IAzureCredentials azureCredentials, HttpClient httpClient, IMemoryCache?memoryCache = null)
 {
     this.azureCredentials = azureCredentials;
     this.httpClient       = httpClient;
     this.memoryCache      = memoryCache;
 }