Esempio n. 1
0
 internal Translator(string apiKey, HttpClient httpClient)
 {
     _authToken  = new AzureAuthToken(apiKey);
     _httpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
 }
Esempio n. 2
0
 internal Translator(string apiKey)
 {
     authToken = new AzureAuthToken(apiKey);
 }
Esempio n. 3
0
 public Translator(string apiKey)
 {
     _authToken     = new AzureAuthToken(apiKey);
     _postProcessor = new PostProcessTranslator();
 }