Show / Hide Table of Contents

Class HttpContext

Encapsulates all HTTP-specific information about an individual HTTP request.

Inheritance
System.Object
HttpContext
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Web.Http.Abstractions
Assembly: Terrasoft.Web.Http.Abstractions.dll
Syntax
public abstract class HttpContext

Constructors

HttpContext()

Declaration
protected HttpContext()

Properties

Application

Gets the HttpApplicationState object for the current HTTP request.

Declaration
public abstract HttpApplicationState Application { get; }
Property Value
Type Description
HttpApplicationState

Current

Gets the HttpContext object for the current HTTP request.

Declaration
public static HttpContext Current { get; }
Property Value
Type Description
HttpContext

HttpContextAccessor

Initializes the HttpContext abstraction with a concrete implementation provider.

Declaration
public static IHttpContextAccessor HttpContextAccessor { get; }
Property Value
Type Description
IHttpContextAccessor

Items

Gets a key/value collection that can be used to organize and share data within the scope of this request.

Declaration
public abstract HttpItemCollection Items { get; }
Property Value
Type Description
HttpItemCollection

Request

Gets the HttpRequest object for the current HTTP request.

Declaration
public abstract HttpRequest Request { get; }
Property Value
Type Description
HttpRequest

Response

Gets the HttpResponse object for the current HTTP response.

Declaration
public abstract HttpResponse Response { get; }
Property Value
Type Description
HttpResponse

Session

Gets the HttpSessionState object for the current HTTP request.

Declaration
public abstract HttpSessionState Session { get; }
Property Value
Type Description
HttpSessionState

User

Gets or sets security information for the current HTTP request.

Declaration
public abstract IPrincipal User { get; set; }
Property Value
Type Description
System.Security.Principal.IPrincipal

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX