Skip to content

Commit

Permalink
build: update Swashbuckle.AspNetCore to 7.1.0 and fix logger authenti…
Browse files Browse the repository at this point in the history
…cation configuration
  • Loading branch information
loekensgard committed Dec 2, 2024
1 parent d7858d7 commit a48f97e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/MinimalApiSample/MinimalApiSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" />
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Elasticsearch\Intility.Extensions.Logging.Elasticsearch.csproj" />
<ProjectReference Include="..\..\src\Intility.Extensions.Logging.Sentry\Intility.Extensions.Logging.Sentry.csproj" />
<ProjectReference Include="..\..\src\Intility.Logging.AspNetCore\Intility.Logging.AspNetCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a48f97e

Please sign in to comment.