Skip to content

Conversation

@skabou
Copy link
Contributor

@skabou skabou commented Mar 13, 2024

Update to .NET 8.0
Updated README

Update to .NET 8.0
Updated README
@skabou skabou requested a review from ckittel March 13, 2024 19:55
@skabou skabou force-pushed the priority-queue-update branch from c57c76c to 617a48f Compare March 13, 2024 20:24
Copy link
Member

@ckittel ckittel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary:

  • Use Entra ID
  • Use new Azure SDK dependency injection model
  • How do we get this to not just be a pub-sub example?
  • Use bicep for the azure resource deployments

That third item is worrying me a bit, not sure how best to proceed. Would be glad to talk it over w/ ya!

Comment on lines 7 to 24
.ConfigureFunctionsWorkerDefaults()
.ConfigureAppConfiguration((hostingContext, config) =>
{
config.AddJsonFile("local.settings.json", optional: true, reloadOnChange: true);
})
.ConfigureServices(services =>
{
var configuration = services.BuildServiceProvider().GetRequiredService<IConfiguration>();

services.AddSingleton(configuration);

services.AddSingleton<ServiceBusClient>(sp =>
{
var connectionString = configuration.GetValue<string>("ServiceBusConnectionString");
return new ServiceBusClient(connectionString);
});
})
.Build();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this get converted to:

services.AddAzureClients(cb => {
  cb.AddServiceBusClient(...)
});

https://learn.microsoft.com/azure/azure-functions/dotnet-isolated-process-guide?tabs=linux#register-azure-clients -- The PG is trying to get folks to use this model for Azure SDK clients intead of the custom approach like you have here.

v-fearam and others added 2 commits October 7, 2024 16:47
* Improvements. Bicep file. Settings. Moved to managed identity. Run func start

* Removing VS requirement

* deleting any

---------

Co-authored-by: Federico Arambarri <v-fearam>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants