Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Controllers.AreaRegistrationBase Class

Base class for area registration.

An instance of this class is instantiated and initialized during application startup in order to define the MVC area used by a package. Each package defines its own MVC area. The name is derived from the YetaWF.PackageAttributes.PackageAttribute (for the domain portion) and the AssemblyProductAttribute (for the product name), defined in the package's AssemblyInfo.cs source file.

The area name is the concatenation of the domain, followed by an underscore and the product name (e.g., YetaWF_Text).

Applications can reference the current package using the static CurrentPackage property.

Applications do not instantiate this class.

Namespace: YetaWF.Core.Controllers
Assembly: YetaWF.Core

Inheritance

Syntax

public abstract class AreaRegistrationBase;

Constructors

This class cannot be instantiated.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicRegisterAreaUsed internally to register area routes. Don't mess with this.
PublicStaticRegisterPackagesUsed by tools (i.e., non web apps) that need to explicitly register packages so they have access to functionality provided by packages, beyond the Core package.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.Core Overview