// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Server.Kestrel.Http; using Microsoft.AspNetCore.Server.Kestrel.Infrastructure; namespace Microsoft.AspNetCore.Server.Kestrel { public class ServiceContext { public ServiceContext() { } public ServiceContext(ServiceContext context) { AppLifetime = context.AppLifetime; Log = context.Log; ThreadPool = context.ThreadPool; FrameFactory = context.FrameFactory; DateHeaderValueManager = context.DateHeaderValueManager; ServerOptions = context.ServerOptions; } public IApplicationLifetime AppLifetime { get; set; } public IKestrelTrace Log { get; set; } public IThreadPool ThreadPool { get; set; } public Func FrameFactory { get; set; } public DateHeaderValueManager DateHeaderValueManager { get; set; } public KestrelServerOptions ServerOptions { get; set; } } }