| File: Internal\KestrelServerOptionsSetup.cs | Web Access |
| Project: src\aspnetcore\src\Servers\Kestrel\Core\src\Microsoft.AspNetCore.Server.Kestrel.Core.csproj (Microsoft.AspNetCore.Server.Kestrel.Core) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.Options; namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal; internal sealed class KestrelServerOptionsSetup : IConfigureOptions<KestrelServerOptions> { private readonly IServiceProvider _services; public KestrelServerOptionsSetup(IServiceProvider services) { _services = services; } public void Configure(KestrelServerOptions options) { options.ApplicationServices = _services; } }