Skip to content

Commit bd7eb0f

Browse files
committed
Cleanup
1 parent c582777 commit bd7eb0f

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/Servers/Kestrel/Core/src/KestrelServerOptions.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,7 @@ private void EnsureDefaultCert()
203203
/// Creates a configuration loader for setting up Kestrel.
204204
/// </summary>
205205
/// <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());
212207

213208
/// <summary>
214209
/// Creates a configuration loader for setting up Kestrel that takes an <see cref="IConfiguration"/> as input.
@@ -219,12 +214,7 @@ public KestrelConfigurationLoader Configure()
219214
/// </summary>
220215
/// <param name="config">The configuration section for Kestrel.</param>
221216
/// <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);
228218

229219
/// <summary>
230220
/// Creates a configuration loader for setting up Kestrel that takes an <see cref="IConfiguration"/> as input.

0 commit comments

Comments
 (0)