示例#1
0
        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);
        }
示例#2
0
 internal Translator()
 {
     bearer = Task.Run(GetBearerTokenForTranslator).Result;
 }