With the introduction of primary constructors in .NET 8, this package will be deprecated.
Injected Services can now be defined tersely using primary constructor syntax:
public class TestService(
IHttpContextAccessor accessor,
IWidgetRepository widgetRepository,
IOptions<EmailSenderOptions> emailSenderOptions)
{
}
Drawbacks (all minor, imho):
- no null checking
- no Options handling
- fields are mutable
With the introduction of primary constructors in .NET 8, this package will be deprecated.
Injected Services can now be defined tersely using primary constructor syntax:
Drawbacks (all minor, imho):