40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
// 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<ConnectionContext, Frame> FrameFactory { get; set; }
|
|
|
|
public DateHeaderValueManager DateHeaderValueManager { get; set; }
|
|
|
|
public KestrelServerOptions ServerOptions { get; set; }
|
|
}
|
|
}
|