Skip to content

Commit a48f97e

Browse files
committed
build: update Swashbuckle.AspNetCore to 7.1.0 and fix logger authentication configuration
1 parent d7858d7 commit a48f97e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

samples/MinimalApiSample/MinimalApiSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
10+
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" />
1111
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Elasticsearch\Intility.Extensions.Logging.Elasticsearch.csproj" />
1212
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Sentry\Intility.Extensions.Logging.Sentry.csproj" />
1313
<ProjectReference Include="..\..\src\Intility.Logging.AspNetCore\Intility.Logging.AspNetCore.csproj" />

src/Intility.Extensions.Logging.Elasticsearch/LoggerBuilderExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public static ILoggerBuilder UseElasticsearch(this ILoggerBuilder builder, strin
6363
foreach (var endpoint in endpoints)
6464
{
6565
var settings = new TransportConfiguration(endpoint)
66-
.Authentication(new BasicAuthentication(username, password));
66+
{
67+
Authentication = new BasicAuthentication(username, password),
68+
};
6769

6870
var transport = new DistributedTransport(settings);
6971
var sinkOptions = new ElasticsearchSinkOptions(transport)

0 commit comments

Comments
 (0)