Skip to main content

ApplicationShutdownOrderAttribute

A class in Root.Township, the global namespace.

Class attribute that sets the order of a class's shutdown handlers. ShutdownOrderComparer sorts ApplicationManager's shutdown delegates by it.

Constructors​

MemberWhat it is
ApplicationShutdownOrderAttribute(int order)Creates an ApplicationShutdownOrderAttribute from order.

Properties​

MemberWhat it is
int ShutdownOrder { get; private set; }The order value given in the constructor.

Methods​

MemberWhat it is
static int GetShutdownOrder(Type targetType)Returns the order on the given type's attribute, or 0 when it has none.