public TokenCredential GetCredential(TokenCredentialTypes type) { try { var credential = new DefaultAzureCredential(); _logger.LogInformation($"Get {type} token credential successfully."); return(credential); } catch (Exception exception) { _logger.LogError($"Get {type} token credential failed. Reason: '{0}'", exception); throw; } }
public TokenCredential GetCredential(TokenCredentialTypes type) { return(new MockTokenCredential()); }