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.
Show file Open project: ChadBurggraf/blue-collar Class Usage Examples

Public Methods

Method 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

Method 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 method

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

FindApplicationTypes() public static method

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.
return IEnumerable

FindEntryPoint() public static method

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.
return System.Reflection.MethodInfo

FindExitPoint() public static method

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.
return System.Reflection.MethodInfo

HttpApplicationProbe() public method

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.
return System