C# Class FakeHttpContext.FakeConfigMapPath

Inheritance: IConfigMapPath
Datei anzeigen Open project: vadimzozulya/FakeHttpContext

Public Methods

Method Description
GetAppPathForPath ( string siteID, string path ) : string

Gets the virtual-directory name associated with a specific site.

GetDefaultSiteNameAndID ( string &siteName, string &siteID ) : void

Populates the default site name and the site ID.

GetMachineConfigFilename ( ) : string

Gets the machine-configuration file name.

GetPathConfigFilename ( string siteID, string path, string &directory, string &baseName ) : void

Populates the directory and name of the configuration file based on the site ID and site path.

GetRootWebConfigFilename ( ) : string

Gets the name of the configuration file at the Web root.

MapPath ( string siteID, string path ) : string

Gets the physical directory path based on the site ID and URL associated with the site.

ResolveSiteArgument ( string siteArgument, string &siteName, string &siteID ) : void

Populates the site name and site ID based on a site argument value.

Method Details

GetAppPathForPath() public method

Gets the virtual-directory name associated with a specific site.
public GetAppPathForPath ( string siteID, string path ) : string
siteID string A unique identifier for the site.
path string The URL associated with the site.
return string

GetDefaultSiteNameAndID() public method

Populates the default site name and the site ID.
public GetDefaultSiteNameAndID ( string &siteName, string &siteID ) : void
siteName string The default site name.
siteID string A unique identifier for the site.
return void

GetMachineConfigFilename() public method

Gets the machine-configuration file name.
public GetMachineConfigFilename ( ) : string
return string

GetPathConfigFilename() public method

Populates the directory and name of the configuration file based on the site ID and site path.
public GetPathConfigFilename ( string siteID, string path, string &directory, string &baseName ) : void
siteID string A unique identifier for the site.
path string The URL associated with the site.
directory string The physical directory of the configuration path.
baseName string The name of the configuration file.
return void

GetRootWebConfigFilename() public method

Gets the name of the configuration file at the Web root.
public GetRootWebConfigFilename ( ) : string
return string

MapPath() public method

Gets the physical directory path based on the site ID and URL associated with the site.
public MapPath ( string siteID, string path ) : string
siteID string A unique identifier for the site.
path string The URL associated with the site.
return string

ResolveSiteArgument() public method

Populates the site name and site ID based on a site argument value.
public ResolveSiteArgument ( string siteArgument, string &siteName, string &siteID ) : void
siteArgument string The site name or site identifier.
siteName string The default site name.
siteID string A unique identifier for the site.
return void