C# Class BlueCollar.HttpApplicationProbe

Provides probing functions for HttpApplication entry/exit points in a bin path. Assumes the bin path is in the current app domain's probing path.
Afficher le fichier Open project: ChadBurggraf/blue-collar Class Usage Examples

Méthodes publiques

Méthode Description
FindApplicationAssemblies ( ) : IEnumerable

Finds Assembly instances in the current bin path that contain types that implement HttpApplication.

FindApplicationTypes ( IEnumerable assemblies ) : IEnumerable

Finds all types in the given assembly collection that implement HttpApplication and contain an entry or exit point (or both).

FindEntryPoint ( Type type ) : MethodInfo

Finds a method acting as an HttpApplication entry point for the given type.

FindExitPoint ( Type type ) : MethodInfo

Finds a method acting as an HttpApplication exit point for the given type.

HttpApplicationProbe ( ILogger logger, string binPath ) : System

Initializes a new instance of the HttpApplicationProbe class.

Private Methods

Méthode Description
FindEventHandler ( Type type, string names ) : MethodInfo

Finds a method that looks like an event handler on the given type using the given name collection as a whitelist.

IsHttpApplication ( Type type ) : bool

Gets a value indicating whether the given type implements HttpApplication.

Method Details

FindApplicationAssemblies() public méthode

Finds Assembly instances in the current bin path that contain types that implement HttpApplication.
public FindApplicationAssemblies ( ) : IEnumerable
Résultat IEnumerable

FindApplicationTypes() public static méthode

Finds all types in the given assembly collection that implement HttpApplication and contain an entry or exit point (or both).
public static FindApplicationTypes ( IEnumerable assemblies ) : IEnumerable
assemblies IEnumerable The assemblies to find application types for.
Résultat IEnumerable

FindEntryPoint() public static méthode

Finds a method acting as an HttpApplication entry point for the given type.
public static FindEntryPoint ( Type type ) : MethodInfo
type System.Type The type to find the entry point for.
Résultat System.Reflection.MethodInfo

FindExitPoint() public static méthode

Finds a method acting as an HttpApplication exit point for the given type.
public static FindExitPoint ( Type type ) : MethodInfo
type System.Type The type to find the exit point for.
Résultat System.Reflection.MethodInfo

HttpApplicationProbe() public méthode

Initializes a new instance of the HttpApplicationProbe class.
public HttpApplicationProbe ( ILogger logger, string binPath ) : System
logger ILogger The logger to use.
binPath string The bin path to probe.
Résultat System