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