C# Class Sage.ResourceManagement.UrlResolver

Implements a generic URL resolver for use with XML and XSL documents, and that any custom resolvers can be registered with.
Inheritance: System.Xml.XmlUrlResolver
Datei anzeigen Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
GetEntity ( Uri uri, string role, Type returnObject ) : object
GetScheme ( string uriString ) : string

Gets the scheme name for the specified uriString.

RegisterResolver ( string scheme, IUrlResolver resolver ) : void

Registers the resolver.

UrlResolver ( SageContext context ) : System

Initializes a new instance of the UrlResolver class.

Private Methods

Method Description
DiscoverUrlResolvers ( ) : void
GetResolver ( string scheme ) : IUrlResolver
OnAssembliesUpdated ( object sender, EventArgs arg ) : void
UrlResolver ( ) : System

Method Details

GetEntity() public method

public GetEntity ( Uri uri, string role, Type returnObject ) : object
uri System.Uri
role string
returnObject System.Type
return object

GetScheme() public static method

Gets the scheme name for the specified uriString.
public static GetScheme ( string uriString ) : string
uriString string The uri for which to get the scheme.
return string

RegisterResolver() public method

Registers the resolver.
public RegisterResolver ( string scheme, IUrlResolver resolver ) : void
scheme string The scheme.
resolver IUrlResolver The resolver.
return void

UrlResolver() public method

Initializes a new instance of the UrlResolver class.
public UrlResolver ( SageContext context ) : System
context SageContext The context.
return System