Compare commits
10 Commits
7b326051bb
...
c42fb5eb00
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c42fb5eb00 | ||
|
|
dbc21959eb | ||
|
|
a97e4e2219 | ||
|
|
35965591f5 | ||
|
|
38b63455d4 | ||
|
|
fbfa21f89a | ||
|
|
e3cdf1fb32 | ||
|
|
351cc28181 | ||
|
|
4e6bf79656 | ||
|
|
73b909f780 |
@ -22,7 +22,7 @@ namespace Core.Blueprint.KeyVault
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="Tuple"/> containing a status message and a boolean indicating whether the secret was successfully deleted.
|
/// A <see cref="Tuple"/> containing a status message and a boolean indicating whether the secret was successfully deleted.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
ValueTask<Tuple<string, bool>> DeleteSecretAsync(string secretName, CancellationToken cancellationToken);
|
ValueTask<(string Message, bool Deleted)> DeleteSecretAsync(string secretName, CancellationToken cancellationToken);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves a secret from Azure Key Vault.
|
/// Retrieves a secret from Azure Key Vault.
|
||||||
@ -33,7 +33,7 @@ namespace Core.Blueprint.KeyVault
|
|||||||
/// A <see cref="Tuple"/> containing the <see cref="KeyVaultResponse"/> with secret details
|
/// A <see cref="Tuple"/> containing the <see cref="KeyVaultResponse"/> with secret details
|
||||||
/// and an optional error message if the secret was not found.
|
/// and an optional error message if the secret was not found.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
ValueTask<Tuple<KeyVaultResponse, string?>> GetSecretAsync(string secretName, CancellationToken cancellationToken);
|
ValueTask<(KeyVaultResponse Secret, string? Message)> GetSecretAsync(string secretName, CancellationToken cancellationToken);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates an existing secret in Azure Key Vault. If the secret does not exist, an error is returned.
|
/// Updates an existing secret in Azure Key Vault. If the secret does not exist, an error is returned.
|
||||||
@ -43,6 +43,6 @@ namespace Core.Blueprint.KeyVault
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="Tuple"/> containing the updated <see cref="KeyVaultResponse"/> and an optional error message if the secret was not found.
|
/// A <see cref="Tuple"/> containing the updated <see cref="KeyVaultResponse"/> and an optional error message if the secret was not found.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
ValueTask<Tuple<KeyVaultResponse, string>> UpdateSecretAsync(KeyVaultRequest newSecret, CancellationToken cancellationToken);
|
ValueTask<(KeyVaultResponse Secret, string? Message)> UpdateSecretAsync(KeyVaultRequest newSecret, CancellationToken cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
using Azure.Security.KeyVault.Secrets;
|
using Azure.Security.KeyVault.Secrets;
|
||||||
using VaultSharp;
|
|
||||||
using VaultSharp.V1.AuthMethods.Token;
|
|
||||||
using Core.Blueprint.KeyVault.Configuration;
|
using Core.Blueprint.KeyVault.Configuration;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using System.Net.Http.Json;
|
using System.Net.Http.Json;
|
||||||
|
using VaultSharp;
|
||||||
using VaultSharp.Core;
|
using VaultSharp.Core;
|
||||||
|
using VaultSharp.V1.AuthMethods.Token;
|
||||||
|
|
||||||
namespace Core.Blueprint.KeyVault;
|
namespace Core.Blueprint.KeyVault;
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ public sealed class KeyVaultProvider : IKeyVaultProvider
|
|||||||
/// <returns>
|
/// <returns>
|
||||||
/// A <see cref="Tuple"/> containing a status message and a boolean indicating whether the secret was successfully deleted.
|
/// A <see cref="Tuple"/> containing a status message and a boolean indicating whether the secret was successfully deleted.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
public async ValueTask<Tuple<string, bool>> DeleteSecretAsync(string secretName, CancellationToken cancellationToken)
|
public async ValueTask<(string Message, bool Deleted)> DeleteSecretAsync(string secretName, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
if (environment == "Local")
|
if (environment == "Local")
|
||||||
{
|
{
|
||||||
@ -88,7 +88,7 @@ public sealed class KeyVaultProvider : IKeyVaultProvider
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieves a secret from Azure Key Vault or HashiCorp Vault.
|
/// Retrieves a secret from Azure Key Vault or HashiCorp Vault.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public async ValueTask<Tuple<KeyVaultResponse, string?>> GetSecretAsync(string secretName, CancellationToken cancellationToken)
|
public async ValueTask<(KeyVaultResponse Secret, string? Message)> GetSecretAsync(string secretName, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
if (environment == "Local")
|
if (environment == "Local")
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ public sealed class KeyVaultProvider : IKeyVaultProvider
|
|||||||
}
|
}
|
||||||
catch (VaultSharp.Core.VaultApiException ex) when (ex.HttpStatusCode == System.Net.HttpStatusCode.NotFound)
|
catch (VaultSharp.Core.VaultApiException ex) when (ex.HttpStatusCode == System.Net.HttpStatusCode.NotFound)
|
||||||
{
|
{
|
||||||
return new(new KeyVaultResponse(), "Key Not Found");
|
return new(new KeyVaultResponse { }, "Key Not Found");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ public sealed class KeyVaultProvider : IKeyVaultProvider
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Updates an existing secret in Azure Key Vault or HashiCorp Vault. If the secret does not exist, an error is returned.
|
/// Updates an existing secret in Azure Key Vault or HashiCorp Vault. If the secret does not exist, an error is returned.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public async ValueTask<Tuple<KeyVaultResponse, string>> UpdateSecretAsync(KeyVaultRequest newSecret, CancellationToken cancellationToken)
|
public async ValueTask<(KeyVaultResponse Secret, string? Message)> UpdateSecretAsync(KeyVaultRequest newSecret, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var existingSecret = await this.GetSecretAsync(newSecret.Name, cancellationToken);
|
var existingSecret = await this.GetSecretAsync(newSecret.Name, cancellationToken);
|
||||||
if (!string.IsNullOrEmpty(existingSecret.Item2))
|
if (!string.IsNullOrEmpty(existingSecret.Item2))
|
||||||
|
|||||||
@ -13,6 +13,8 @@ namespace Core.Blueprint.Logging
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static class MimeTypes
|
public static class MimeTypes
|
||||||
{
|
{
|
||||||
|
public const string ApplicationVersion = "1.0";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The service application/json mime type.
|
/// The service application/json mime type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -104,11 +104,13 @@ namespace Core.Blueprint.Mongo
|
|||||||
void ReplaceOne(TDocument document);
|
void ReplaceOne(TDocument document);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Asynchronously replaces an existing document with a new one.
|
/// Asynchronously replaces an existing document in the collection and returns the updated version.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="document">The document to replace the existing one.</param>
|
/// <param name="document">The document with the updated data. Its _Id is used to locate the existing document.</param>
|
||||||
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
|
/// <returns>
|
||||||
Task ReplaceOneAsync(TDocument document);
|
/// The updated document if the replacement was successful; otherwise, <c>null</c> if no matching document was found.
|
||||||
|
/// </returns>
|
||||||
|
Task<TDocument?> ReplaceOneAsync(TDocument document);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deletes a single document by the provided filter expression.
|
/// Deletes a single document by the provided filter expression.
|
||||||
|
|||||||
@ -175,16 +175,27 @@ namespace Core.Blueprint.Mongo
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Asynchronously replaces an existing document in the collection.
|
/// Asynchronously replaces an existing document in the collection and returns the updated version.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="document">The document with the updated data.</param>
|
/// <param name="document">The document with the updated data. Its _Id is used to locate the existing document.</param>
|
||||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
/// <returns>
|
||||||
public virtual async Task ReplaceOneAsync(TDocument document)
|
/// The updated document if the replacement was successful; otherwise, <c>null</c> if no matching document was found.
|
||||||
|
/// </returns>
|
||||||
|
public virtual async Task<TDocument?> ReplaceOneAsync(TDocument document)
|
||||||
{
|
{
|
||||||
var filter = Builders<TDocument>.Filter.Eq(doc => doc._Id, document._Id);
|
var filter = Builders<TDocument>.Filter.Eq(doc => doc._Id, document._Id);
|
||||||
await _collection.FindOneAndReplaceAsync(filter, document);
|
|
||||||
|
var options = new FindOneAndReplaceOptions<TDocument>
|
||||||
|
{
|
||||||
|
ReturnDocument = ReturnDocument.After // return the updated document
|
||||||
|
};
|
||||||
|
|
||||||
|
var result = await _collection.FindOneAndReplaceAsync(filter, document, options);
|
||||||
|
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deletes a single document from the collection based on the provided filter expression.
|
/// Deletes a single document from the collection based on the provided filter expression.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -27,7 +27,7 @@ namespace Core.Blueprint.Redis.Configuration
|
|||||||
|
|
||||||
// Register RedisCacheProvider
|
// Register RedisCacheProvider
|
||||||
services.AddSingleton<IRedisCacheProvider>(provider =>
|
services.AddSingleton<IRedisCacheProvider>(provider =>
|
||||||
new RedisCacheProvider(redisConnectionString, provider.GetRequiredService<ILogger<RedisCacheProvider>>()));
|
new RedisCacheProvider(redisConnectionString, provider.GetRequiredService<ILogger<RedisCacheProvider>>(), configuration));
|
||||||
|
|
||||||
// Get CacheSettings and register with the ICacheSettings interface
|
// Get CacheSettings and register with the ICacheSettings interface
|
||||||
var cacheSettings = configuration.GetSection("CacheSettings").Get<CacheSettings>();
|
var cacheSettings = configuration.GetSection("CacheSettings").Get<CacheSettings>();
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
using Azure.Identity;
|
using Azure.Identity;
|
||||||
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using StackExchange.Redis;
|
using StackExchange.Redis;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
@ -12,6 +13,7 @@ namespace Core.Blueprint.Redis
|
|||||||
{
|
{
|
||||||
private IDatabase _cacheDatabase = null!;
|
private IDatabase _cacheDatabase = null!;
|
||||||
private readonly ILogger<RedisCacheProvider> _logger;
|
private readonly ILogger<RedisCacheProvider> _logger;
|
||||||
|
private readonly bool _useRedis;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="RedisCacheProvider"/> class.
|
/// Initializes a new instance of the <see cref="RedisCacheProvider"/> class.
|
||||||
@ -19,35 +21,53 @@ namespace Core.Blueprint.Redis
|
|||||||
/// <param name="connectionString">The Redis connection string.</param>
|
/// <param name="connectionString">The Redis connection string.</param>
|
||||||
/// <param name="logger">The logger instance for logging operations.</param>
|
/// <param name="logger">The logger instance for logging operations.</param>
|
||||||
/// <exception cref="ArgumentNullException">Thrown when connection string is null or empty.</exception>
|
/// <exception cref="ArgumentNullException">Thrown when connection string is null or empty.</exception>
|
||||||
public RedisCacheProvider(string connectionString, ILogger<RedisCacheProvider> logger)
|
public RedisCacheProvider(string connectionString, ILogger<RedisCacheProvider> logger, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(connectionString))
|
if (string.IsNullOrWhiteSpace(connectionString))
|
||||||
throw new ArgumentNullException(nameof(connectionString), "Redis connection string cannot be null or empty.");
|
throw new ArgumentNullException(nameof(connectionString), "Redis connection string cannot be null or empty.");
|
||||||
|
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
|
_useRedis = configuration.GetValue<bool>("UseRedisCache", false);
|
||||||
_cacheDatabase = InitializeRedisAsync(connectionString).GetAwaiter().GetResult();
|
_cacheDatabase = InitializeRedisAsync(connectionString).GetAwaiter().GetResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes and establishes a connection to Redis using the provided connection string.
|
/// Initializes and establishes a connection to Redis based on the environment.
|
||||||
|
/// Uses a local connection in development, and Azure with token credentials in other environments.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="connectionString">The Redis connection string.</param>
|
/// <param name="connectionString">The Redis connection string.</param>
|
||||||
/// <returns>An <see cref="IDatabase"/> instance representing the Redis cache database.</returns>
|
/// <returns>An <see cref="IDatabase"/> instance representing the Redis cache database.</returns>
|
||||||
/// <exception cref="Exception">Thrown when the connection to Redis fails.</exce
|
/// <exception cref="Exception">Thrown when the connection to Redis fails.</exception>
|
||||||
async Task<IDatabase> InitializeRedisAsync(string connectionString)
|
async Task<IDatabase?> InitializeRedisAsync(string connectionString)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var configurationOptions = await ConfigurationOptions.Parse($"{connectionString}")
|
if (_useRedis)
|
||||||
|
{
|
||||||
|
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? string.Empty;
|
||||||
|
ConnectionMultiplexer connectionMultiplexer;
|
||||||
|
|
||||||
|
if (environment.Equals("Local", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
connectionMultiplexer = await ConnectionMultiplexer.ConnectAsync(connectionString);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var configurationOptions = await ConfigurationOptions.Parse(connectionString)
|
||||||
.ConfigureForAzureWithTokenCredentialAsync(new DefaultAzureCredential());
|
.ConfigureForAzureWithTokenCredentialAsync(new DefaultAzureCredential());
|
||||||
|
|
||||||
configurationOptions.AbortOnConnectFail = false;
|
configurationOptions.AbortOnConnectFail = false;
|
||||||
var connectionMultiplexer = await ConnectionMultiplexer.ConnectAsync(configurationOptions);
|
|
||||||
|
connectionMultiplexer = await ConnectionMultiplexer.ConnectAsync(configurationOptions);
|
||||||
|
}
|
||||||
|
|
||||||
_logger.LogInformation("Successfully connected to Redis.");
|
_logger.LogInformation("Successfully connected to Redis.");
|
||||||
|
|
||||||
return connectionMultiplexer.GetDatabase();
|
return connectionMultiplexer.GetDatabase();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, "Error establishing Redis connection.");
|
_logger.LogError(ex, "Error establishing Redis connection.");
|
||||||
@ -64,8 +84,11 @@ namespace Core.Blueprint.Redis
|
|||||||
public async ValueTask<TEntity> GetAsync<TEntity>(string key)
|
public async ValueTask<TEntity> GetAsync<TEntity>(string key)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_useRedis is not false)
|
||||||
{
|
{
|
||||||
var value = await _cacheDatabase.StringGetAsync(key);
|
var value = await _cacheDatabase.StringGetAsync(key);
|
||||||
|
|
||||||
if (value.IsNullOrEmpty)
|
if (value.IsNullOrEmpty)
|
||||||
{
|
{
|
||||||
_logger.LogInformation($"Cache miss for key: {key}");
|
_logger.LogInformation($"Cache miss for key: {key}");
|
||||||
@ -75,6 +98,9 @@ namespace Core.Blueprint.Redis
|
|||||||
_logger.LogInformation($"Cache hit for key: {key}");
|
_logger.LogInformation($"Cache hit for key: {key}");
|
||||||
return JsonSerializer.Deserialize<TEntity>(value);
|
return JsonSerializer.Deserialize<TEntity>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return default;
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, $"Error getting cache item with key {key}");
|
_logger.LogError(ex, $"Error getting cache item with key {key}");
|
||||||
@ -91,11 +117,14 @@ namespace Core.Blueprint.Redis
|
|||||||
public async ValueTask SetAsync<TEntity>(string key, TEntity value, TimeSpan? expiry = null)
|
public async ValueTask SetAsync<TEntity>(string key, TEntity value, TimeSpan? expiry = null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_useRedis is not false)
|
||||||
{
|
{
|
||||||
var json = JsonSerializer.Serialize(value);
|
var json = JsonSerializer.Serialize(value);
|
||||||
await _cacheDatabase.StringSetAsync(key, json, expiry);
|
await _cacheDatabase.StringSetAsync(key, json, expiry);
|
||||||
_logger.LogInformation($"Cache item set with key: {key}");
|
_logger.LogInformation($"Cache item set with key: {key}");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, $"Error setting cache item with key {key}");
|
_logger.LogError(ex, $"Error setting cache item with key {key}");
|
||||||
@ -110,10 +139,13 @@ namespace Core.Blueprint.Redis
|
|||||||
public async ValueTask RemoveAsync(string key)
|
public async ValueTask RemoveAsync(string key)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_useRedis is not false)
|
||||||
{
|
{
|
||||||
await _cacheDatabase.KeyDeleteAsync(key);
|
await _cacheDatabase.KeyDeleteAsync(key);
|
||||||
_logger.LogInformation($"Cache item removed with key: {key}");
|
_logger.LogInformation($"Cache item removed with key: {key}");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, $"Error removing cache item with key {key}");
|
_logger.LogError(ex, $"Error removing cache item with key {key}");
|
||||||
@ -129,10 +161,14 @@ namespace Core.Blueprint.Redis
|
|||||||
public async ValueTask<bool> ExistsAsync(string key)
|
public async ValueTask<bool> ExistsAsync(string key)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_useRedis is not false)
|
||||||
{
|
{
|
||||||
var exists = await _cacheDatabase.KeyExistsAsync(key);
|
var exists = await _cacheDatabase.KeyExistsAsync(key);
|
||||||
_logger.LogInformation($"Cache item exists check for key: {key} - {exists}");
|
_logger.LogInformation($"Cache item exists check for key: {key} - {exists}");
|
||||||
return exists;
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -149,6 +185,8 @@ namespace Core.Blueprint.Redis
|
|||||||
public async ValueTask RefreshAsync(string key, TimeSpan? expiry = null)
|
public async ValueTask RefreshAsync(string key, TimeSpan? expiry = null)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
{
|
||||||
|
if (_useRedis is not false)
|
||||||
{
|
{
|
||||||
var value = await _cacheDatabase.StringGetAsync(key);
|
var value = await _cacheDatabase.StringGetAsync(key);
|
||||||
if (!value.IsNullOrEmpty)
|
if (!value.IsNullOrEmpty)
|
||||||
@ -161,6 +199,7 @@ namespace Core.Blueprint.Redis
|
|||||||
_logger.LogWarning($"Cache item with key: {key} does not exist, cannot refresh");
|
_logger.LogWarning($"Cache item with key: {key} does not exist, cannot refresh");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, $"Error refreshing cache item with key {key}");
|
_logger.LogError(ex, $"Error refreshing cache item with key {key}");
|
||||||
|
|||||||
@ -18,6 +18,8 @@ namespace Core.Blueprint.SQLServer.Configuration
|
|||||||
/// <returns>An updated <see cref="IServiceCollection"/> with SQL Server services registered.</returns>
|
/// <returns>An updated <see cref="IServiceCollection"/> with SQL Server services registered.</returns>
|
||||||
public static IServiceCollection AddSQLServer(this IServiceCollection services, IConfiguration configuration)
|
public static IServiceCollection AddSQLServer(this IServiceCollection services, IConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? string.Empty;
|
||||||
|
|
||||||
var chainedCredentials = new ChainedTokenCredential(
|
var chainedCredentials = new ChainedTokenCredential(
|
||||||
new ManagedIdentityCredential(),
|
new ManagedIdentityCredential(),
|
||||||
new SharedTokenCacheCredential(),
|
new SharedTokenCacheCredential(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user