C# Class FakeHttpContext.FakeConfigMapPath

Inheritance: IConfigMapPath
Afficher le fichier Open project: vadimzozulya/FakeHttpContext

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

GetDefaultSiteNameAndID() public méthode

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.
Résultat void

GetMachineConfigFilename() public méthode

Gets the machine-configuration file name.
public GetMachineConfigFilename ( ) : string
Résultat string

GetPathConfigFilename() public méthode

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.
Résultat void

GetRootWebConfigFilename() public méthode

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

MapPath() public méthode

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.
Résultat string

ResolveSiteArgument() public méthode

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.
Résultat void