C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

FindApplicationAssemblies() публичный Метод

Finds Assembly instances in the current bin path that contain types that implement HttpApplication.
public FindApplicationAssemblies ( ) : IEnumerable
Результат IEnumerable

FindApplicationTypes() публичный статический Метод

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.
Результат IEnumerable

FindEntryPoint() публичный статический Метод

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.
Результат System.Reflection.MethodInfo

FindExitPoint() публичный статический Метод

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.
Результат System.Reflection.MethodInfo

HttpApplicationProbe() публичный Метод

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.
Результат System