@@ -94,7 +94,7 @@ public static IServiceCollection AddIfElse(
94
94
public static IServiceCollection ConfigureSingleton < TOptions > (
95
95
this IServiceCollection services ,
96
96
IConfiguration configuration )
97
- where TOptions : class , new ( )
97
+ where TOptions : class
98
98
{
99
99
ArgumentNullException . ThrowIfNull ( services ) ;
100
100
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -116,7 +116,7 @@ public static IServiceCollection ConfigureSingleton<TOptions>(
116
116
this IServiceCollection services ,
117
117
IConfiguration configuration ,
118
118
Action < BinderOptions > configureBinder )
119
- where TOptions : class , new ( )
119
+ where TOptions : class
120
120
{
121
121
ArgumentNullException . ThrowIfNull ( services ) ;
122
122
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -137,7 +137,7 @@ public static IServiceCollection ConfigureSingleton<TOptions>(
137
137
public static IServiceCollection ConfigureAndValidateSingleton < TOptions > (
138
138
this IServiceCollection services ,
139
139
IConfiguration configuration )
140
- where TOptions : class , new ( )
140
+ where TOptions : class
141
141
{
142
142
ArgumentNullException . ThrowIfNull ( services ) ;
143
143
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -163,7 +163,7 @@ public static IServiceCollection ConfigureAndValidateSingleton<TOptions>(
163
163
this IServiceCollection services ,
164
164
IConfiguration configuration ,
165
165
Action < BinderOptions > configureBinder )
166
- where TOptions : class , new ( )
166
+ where TOptions : class
167
167
{
168
168
ArgumentNullException . ThrowIfNull ( services ) ;
169
169
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -189,7 +189,7 @@ public static IServiceCollection ConfigureAndValidateSingleton<TOptions>(
189
189
this IServiceCollection services ,
190
190
IConfiguration configuration ,
191
191
Func < TOptions , bool > validation )
192
- where TOptions : class , new ( )
192
+ where TOptions : class
193
193
{
194
194
ArgumentNullException . ThrowIfNull ( services ) ;
195
195
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -219,7 +219,7 @@ public static IServiceCollection ConfigureAndValidateSingleton<TOptions>(
219
219
IConfiguration configuration ,
220
220
Func < TOptions , bool > validation ,
221
221
Action < BinderOptions > configureBinder )
222
- where TOptions : class , new ( )
222
+ where TOptions : class
223
223
{
224
224
ArgumentNullException . ThrowIfNull ( services ) ;
225
225
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -249,7 +249,7 @@ public static IServiceCollection ConfigureAndValidateSingleton<TOptions>(
249
249
IConfiguration configuration ,
250
250
Func < TOptions , bool > validation ,
251
251
string failureMessage )
252
- where TOptions : class , new ( )
252
+ where TOptions : class
253
253
{
254
254
ArgumentNullException . ThrowIfNull ( services ) ;
255
255
ArgumentNullException . ThrowIfNull ( configuration ) ;
@@ -282,7 +282,7 @@ public static IServiceCollection ConfigureAndValidateSingleton<TOptions>(
282
282
Func < TOptions , bool > validation ,
283
283
string failureMessage ,
284
284
Action < BinderOptions > configureBinder )
285
- where TOptions : class , new ( )
285
+ where TOptions : class
286
286
{
287
287
ArgumentNullException . ThrowIfNull ( services ) ;
288
288
ArgumentNullException . ThrowIfNull ( configuration ) ;
0 commit comments