skip to Main Content

Why is DefaultAzureCredential trying to use ManagedIdentityCredential on a local machine?

I am trying to use DefaultAzureCredential to connect to a key vault hosted in Azure using the code below: using System; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Configuration; // Azure.Extensions.AspNetCore.Configuration.Secrets 1.2.2 using Azure.Identity; // Azure.Identity 1.6.0 public static IHostBuilder CreateHostBuilder(string[] args)…

VIEW QUESTION

How to perform multiple operations concurrently on DbContext? – Asp.net

I have the following background service running: protected override async Task ExecuteAsync(CancellationToken stoppingToken) { await Task.Run(async () => { while (!stoppingToken.IsCancellationRequested) { using (var scope = _scopeFactory.CreateScope()) { DataContext dbContext = scope.ServiceProvider.GetRequiredService<DataContext>(); var tasks = new List<Task>(); tasks.Add(siteA.ProcessSchedule(SportLeagues.MLB, logger, dbContext));…

VIEW QUESTION
Back To Top
Search