49 lines
1.5 KiB
C#
49 lines
1.5 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 System.Net;
|
|
using Microsoft.AspNet.Hosting;
|
|
using Microsoft.AspNet.Http.Features;
|
|
using Microsoft.AspNet.Server.Kestrel.Filter;
|
|
using Microsoft.AspNet.Server.Kestrel.Http;
|
|
using Microsoft.AspNet.Server.Kestrel.Infrastructure;
|
|
|
|
namespace Microsoft.AspNet.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;
|
|
ConnectionFilter = context.ConnectionFilter;
|
|
NoDelay = context.NoDelay;
|
|
ReuseStreams = context.ReuseStreams;
|
|
}
|
|
|
|
public IApplicationLifetime AppLifetime { get; set; }
|
|
|
|
public IKestrelTrace Log { get; set; }
|
|
|
|
public IThreadPool ThreadPool { get; set; }
|
|
|
|
public Func<ConnectionContext, IPEndPoint, IPEndPoint, Action<IFeatureCollection>, Frame> FrameFactory { get; set; }
|
|
|
|
public DateHeaderValueManager DateHeaderValueManager { get; set; }
|
|
|
|
public IConnectionFilter ConnectionFilter { get; set; }
|
|
|
|
public bool NoDelay { get; set; }
|
|
|
|
public bool ReuseStreams { get; set; }
|
|
}
|
|
}
|