dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.3k stars 4.74k forks source link

IOptionsMonitor missing generic type constraint "where TOptions : class" #109274

Open BernhardNinaus opened 2 weeks ago

BernhardNinaus commented 2 weeks ago

Description

Hello.

I've found, that IOptionsMonitor is the only interface which is missing the generic type constraint "where TOptions : class" opposed to the other "IOptions" interfaces.

Reproduction Steps

Missing on IOptionsMonitor Pressent on:

Expected behavior

Generic Type constraint just like other interfaces.

Actual behavior

No Generic Type constraint.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

dotnet-policy-service[bot] commented 2 weeks ago

Tagging subscribers to this area: @dotnet/area-extensions-options See info in area-owners.md if you want to be subscribed.