File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
src/Servers/Kestrel/Core/src Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,7 @@ private void EnsureDefaultCert()
203
203
/// Creates a configuration loader for setting up Kestrel.
204
204
/// </summary>
205
205
/// <returns>A <see cref="KestrelConfigurationLoader"/> for configuring endpoints.</returns>
206
- public KestrelConfigurationLoader Configure ( )
207
- {
208
- var loader = new KestrelConfigurationLoader ( this , new ConfigurationBuilder ( ) . Build ( ) , reloadOnChange : false ) ;
209
- ConfigurationLoader = loader ;
210
- return loader ;
211
- }
206
+ public KestrelConfigurationLoader Configure ( ) => Configure ( new ConfigurationBuilder ( ) . Build ( ) ) ;
212
207
213
208
/// <summary>
214
209
/// Creates a configuration loader for setting up Kestrel that takes an <see cref="IConfiguration"/> as input.
@@ -219,12 +214,7 @@ public KestrelConfigurationLoader Configure()
219
214
/// </summary>
220
215
/// <param name="config">The configuration section for Kestrel.</param>
221
216
/// <returns>A <see cref="KestrelConfigurationLoader"/> for further endpoint configuration.</returns>
222
- public KestrelConfigurationLoader Configure ( IConfiguration config )
223
- {
224
- var loader = new KestrelConfigurationLoader ( this , config , reloadOnChange : true ) ;
225
- ConfigurationLoader = loader ;
226
- return loader ;
227
- }
217
+ public KestrelConfigurationLoader Configure ( IConfiguration config ) => Configure ( config , true ) ;
228
218
229
219
/// <summary>
230
220
/// Creates a configuration loader for setting up Kestrel that takes an <see cref="IConfiguration"/> as input.
You can’t perform that action at this time.
0 commit comments