C# Class Spring.Util.HttpContextSwitch

Performs a HttpContext.RewritePath(string). Original path will be restored on Dispose
Rewrites the current HttpContext's filepath to <directory>/currentcontext.dummy.
This affects resolving resources by calls to Spring.Util.ConfigurationUtils.GetSection and HttpRequest.MapPath(string)
Original path is restored during HttpContextSwitch.Dispose.
Inheritance: IDisposable
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
Dispose ( ) : void

Restores original path if necessary

HttpContextSwitch ( string virtualDirectory ) : System

Performs an immediate call to HttpContext.RewritePath(string)

Method Details

Dispose() public méthode

Restores original path if necessary
public Dispose ( ) : void
Résultat void

HttpContextSwitch() public méthode

Performs an immediate call to HttpContext.RewritePath(string)
public HttpContextSwitch ( string virtualDirectory ) : System
virtualDirectory string a directory path (without trailing filename!)
Résultat System