Interface IContext
- Namespace
- Dynamicweb.Environment
- Assembly
- Dynamicweb.Environment.dll
Defines a contract for the Dynamicweb.Context.Current instance. This interface is an abstraction of HttpContext.
Encapsulates all HTTP-specific information about an individual HTTP request.
public interface IContext
Remarks
HttpContext is the default implementation used in Dynamicweb
Properties
Application
Gets the Http ApplicationState object for the current request
IApplication Application { get; }
Property Value
ApplicationInstance
Gets the Application for the current request
IApplicationInstance ApplicationInstance { get; }
Property Value
Items
Gets a key/value collection that can be used to organize and share data between an IHttpModule interface and an IHttpHandler interface during an HTTP request
IDictionary Items { get; }
Property Value
Request
Gets the Request object in the current request
IRequest Request { get; }
Property Value
Response
Gets the Response object for the current request
IResponse Response { get; }
Property Value
Server
Gets the Server object providing methods used in processing Requests
IServer Server { get; }
Property Value
Session
Gets the Session object for the current request
ISession Session { get; }
Property Value
Snapshot
Gets a snapshot of the current context
IContext Snapshot { get; }
Property Value
Methods
RewritePath(string, string, string)
Rewrites the URL using the given virtual path, path information, query string information, and a Boolean value that specifies whether the client file path is set to the rewrite path.
void RewritePath(string filePath, string pathInfo, string queryString)