public TranscriptionService(IOptions <TranscriptionAccount> transcriptionAccount, HttpClient httpClient, IServiceHelpers helper) { _account = transcriptionAccount.Value ?? throw new ArgumentNullException(nameof(transcriptionAccount)); _helper = helper ?? throw new ArgumentNullException(nameof(helper)); _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); _httpClient.DefaultRequestHeaders.Add("Authorization", _account.AuthToken); }
public AssemblyAiService(IOptions <AssemblyAiAccount> assemblyAiAccount, HttpClient httpClient, IServiceHelpers helper) { var account = assemblyAiAccount.Value ?? throw new ArgumentNullException(nameof(assemblyAiAccount)); _helper = helper ?? throw new ArgumentNullException(nameof(helper)); _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient)); _httpClient.DefaultRequestHeaders.Add("Authorization", account.AuthToken); }