DEV Community

freecoderzhaoshuai
freecoderzhaoshuai

Posted on

Register ServiceBusClient in .net core web api

services.AddHostedService();
services.AddAzureClients(cfg =>
{
cfg.AddServiceBusClient(Configuration.GetSection("ServiceBus")).WithCredential(new Azure.Identity.DefaultAzureCredential());
});

Top comments (0)