From bd6c58595a49686d0da8b309177f26c042df2418 Mon Sep 17 00:00:00 2001 From: rickdotnet Date: Wed, 6 Mar 2024 15:34:53 -0600 Subject: [PATCH] dotnet format --- .../NatsBuilder.cs | 3 +-- .../MyJsonContext.cs | 2 +- .../NatsHostingExtensionsTests.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NATS.Extensions.Microsoft.DependencyInjection/NatsBuilder.cs b/src/NATS.Extensions.Microsoft.DependencyInjection/NatsBuilder.cs index 540c79fa8..905c54553 100644 --- a/src/NATS.Extensions.Microsoft.DependencyInjection/NatsBuilder.cs +++ b/src/NATS.Extensions.Microsoft.DependencyInjection/NatsBuilder.cs @@ -1,4 +1,4 @@ -using System.Text.Json; +using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; @@ -120,7 +120,6 @@ private NatsConnectionPool PoolFactory(IServiceProvider provider, object? diKey var options = NatsOpts.Default with { LoggerFactory = provider.GetRequiredService() }; options = _configureOpts?.Invoke(options) ?? options; - return new NatsConnectionPool(_poolSize, options, _configureConnection ?? (_ => { })); } diff --git a/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/MyJsonContext.cs b/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/MyJsonContext.cs index 94858e455..30bb0767c 100644 --- a/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/MyJsonContext.cs +++ b/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/MyJsonContext.cs @@ -1,4 +1,4 @@ -using System.Text.Json.Serialization; +using System.Text.Json.Serialization; namespace NATS.Extensions.Microsoft.DependencyInjection.Tests; diff --git a/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/NatsHostingExtensionsTests.cs b/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/NatsHostingExtensionsTests.cs index 5d86b4686..ee4a3fede 100644 --- a/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/NatsHostingExtensionsTests.cs +++ b/tests/NATS.Extensions.Microsoft.DependencyInjection.Tests/NatsHostingExtensionsTests.cs @@ -1,4 +1,4 @@ -using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using NATS.Client.Core;