internal async Task <AzureDataMarket.Token> GetBearerTokenForTranslator() { string clientID = "replace wiht own"; string clientSecret = "replace with own"; var _Authentication = new AzureDataMarket(clientID, clientSecret); var m_Token = await _Authentication.GetTokenAsync(); bearer = m_Token; return(m_Token); }
internal Translator() { bearer = Task.Run(GetBearerTokenForTranslator).Result; }