New Features

Release date : Friday, September 4, 2009
C1 version: Composite C1 1.2 SP2 (1.2.3534.23578)...
Description : A new attribute [ApplicationStartup] have been added to the Composite.Application namespace, enabling developers to have code executed automatically on C1 application startup. This is usefull for hooking on to events, starting maintainance workflows etc. In version 1.2 SP2 this attribute is alse useable on files located in /App_Code.

To use this feature, add the [ApplicationStartup] attribute to a class, and add two static methods like this:

using Composite.Application;

[ApplicationStartup]
public class MyAppStartupHandler
{
/// <summary>
/// This handler will be called before Composite initialization. The data layer cannot be used here.
/// </summary>
static void OnBeforeInitialize();

/// <summary>
/// This handler will be called after initialization of Composite core.
/// </summary>
static void OnInitialized();
}

New Features