From a48f97e50cb22941f15e5a6815220b0f903ce85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorstein=20L=C3=B8kensgard?= Date: Mon, 2 Dec 2024 15:45:39 +0100 Subject: [PATCH] build: update Swashbuckle.AspNetCore to 7.1.0 and fix logger authentication configuration --- samples/MinimalApiSample/MinimalApiSample.csproj | 2 +- .../LoggerBuilderExtensions.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/MinimalApiSample/MinimalApiSample.csproj b/samples/MinimalApiSample/MinimalApiSample.csproj index 7f4410a..9a89dff 100644 --- a/samples/MinimalApiSample/MinimalApiSample.csproj +++ b/samples/MinimalApiSample/MinimalApiSample.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Intility.Extensions.Logging.Elasticsearch/LoggerBuilderExtensions.cs b/src/Intility.Extensions.Logging.Elasticsearch/LoggerBuilderExtensions.cs index 049530e..5863cd7 100644 --- a/src/Intility.Extensions.Logging.Elasticsearch/LoggerBuilderExtensions.cs +++ b/src/Intility.Extensions.Logging.Elasticsearch/LoggerBuilderExtensions.cs @@ -63,7 +63,9 @@ public static ILoggerBuilder UseElasticsearch(this ILoggerBuilder builder, strin foreach (var endpoint in endpoints) { var settings = new TransportConfiguration(endpoint) - .Authentication(new BasicAuthentication(username, password)); + { + Authentication = new BasicAuthentication(username, password), + }; var transport = new DistributedTransport(settings); var sinkOptions = new ElasticsearchSinkOptions(transport)