dotnet / dotnet/dotnet-api-docs

Host.CreateDefaultBuilder should specify that on windows it adds the EventLog Provider

Open
#12,600 1 comment 0 reactions 0 assignees View on GitHub
area-Extensions-Hosting untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Missing information

### Description

The Host.CreateDefaultBuilder documentation states it adds a number of default providers, however the EventLog provider being added on windows [Source](
https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Hosting/src/HostingHostBuilderExtensions.cs#L297-L301) is not shown in the documentation

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.host.createdefaultbuilder?view=net-10.0-pp&viewFallbackFrom=net-8.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/Microsoft.Extensions.Hosting/Host.xml

### Document Version Independent Id

4ad9a6e3-9d0b-daee-c176-66c12c795349

### Platform Id

d181c500-8680-4e8c-a09b-9bc56e12734e

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.