Exemple #1
0
 public async Task <string> GetToken()
 {
     if (_token == null)
     {
         _token = await _tokenService.CreateClientCredentialToken(_accountSettings, AccountClientId, AccountClientSecrect);
     }
     return(_token);
 }
Exemple #2
0
 public async Task <string> GetToken()
 {
     if (string.IsNullOrEmpty(_token))
     {
         _token = await _tokenService.CreateClientCredentialToken(_settingsFactory.CreateAccount(_settings), _settings.ClientId, _settings.Secret);
     }
     return(_token);
 }