Skip to content

Commit 5e57dc8

Browse files
committed
add singleton registration
1 parent ee77959 commit 5e57dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GodelTech.Messaging.AzureServiceBus/DependencyInjection/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static IServiceCollection AddAzureServiceBusSender(
2424
Action<AzureServiceBusOptions, IConfiguration> configureOptions)
2525
{
2626
// ServiceBusClient
27-
services.AddTransient(
27+
services.AddSingleton(
2828
provider => new ServiceBusClient(
2929
connectionString(
3030
provider.GetService<IConfiguration>()

0 commit comments

Comments
 (0)