Rename IHttpContextContainer to IDefaultHttpContextContainer (#7217)
- Renamed since the property has to be a DefaultHttpContext
This commit is contained in:
parent
8564093627
commit
9f202feafc
|
|
@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Http
|
|||
|
||||
private static DefaultHttpContext CreateHttpContext(IFeatureCollection featureCollection)
|
||||
{
|
||||
if (featureCollection is IHttpContextContainer container)
|
||||
if (featureCollection is IDefaultHttpContextContainer container)
|
||||
{
|
||||
return container.HttpContext;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ namespace Microsoft.AspNetCore.Http
|
|||
|
||||
private static DefaultHttpContext CreateHttpContext(IFeatureCollection featureCollection)
|
||||
{
|
||||
if (featureCollection is IHttpContextContainer container)
|
||||
if (featureCollection is IDefaultHttpContextContainer container)
|
||||
{
|
||||
return container.HttpContext;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using System.Text;
|
|||
|
||||
namespace Microsoft.AspNetCore.Http
|
||||
{
|
||||
public interface IHttpContextContainer
|
||||
public interface IDefaultHttpContextContainer
|
||||
{
|
||||
DefaultHttpContext HttpContext { get; }
|
||||
}
|
||||
|
|
@ -23,7 +23,7 @@ using Microsoft.Extensions.Primitives;
|
|||
|
||||
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
||||
{
|
||||
public abstract partial class HttpProtocol : IHttpContextContainer, IHttpResponseControl
|
||||
public abstract partial class HttpProtocol : IDefaultHttpContextContainer, IHttpResponseControl
|
||||
{
|
||||
private static readonly byte[] _bytesConnectionClose = Encoding.ASCII.GetBytes("\r\nConnection: close");
|
||||
private static readonly byte[] _bytesConnectionKeepAlive = Encoding.ASCII.GetBytes("\r\nConnection: keep-alive");
|
||||
|
|
@ -274,7 +274,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
|||
|
||||
protected HttpResponseHeaders HttpResponseHeaders { get; } = new HttpResponseHeaders();
|
||||
|
||||
DefaultHttpContext IHttpContextContainer.HttpContext
|
||||
DefaultHttpContext IDefaultHttpContextContainer.HttpContext
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue