Table of Contents

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

IApplication

ApplicationInstance

Gets the Application for the current request
IApplicationInstance ApplicationInstance { get; }

Property Value

IApplicationInstance

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

IDictionary

Request

Gets the Request object in the current request
IRequest Request { get; }

Property Value

IRequest

Response

Gets the Response object for the current request
IResponse Response { get; }

Property Value

IResponse

Server

Gets the Server object providing methods used in processing Requests
IServer Server { get; }

Property Value

IServer

Session

Gets the Session object for the current request
ISession Session { get; }

Property Value

ISession

Snapshot

Gets a snapshot of the current context
IContext Snapshot { get; }

Property Value

IContext

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)

Parameters

filePath string
The virtual path to the resource that services the request.
pathInfo string
Additional path information to use for the URL redirect. For more information
queryString string
The request query string to use for the URL redirect.
To top