Using this attribute on a class with the following two static methods, will cause C1 to call those two methods in the initialization phase of C1. This can be used to register event handlers ans such. The static class should have these two static methods:
CopyC#
/* This handler will be called before C1 initialization. The data layer cannot be used here. */
public static void OnBeforeInitialize() {}
/* This handler will be called after initialization of C1 core. */
public static void OnInitialized() {}

Namespace: Composite.Core.Application
Assembly: Composite (in Composite.dll) Version: 5.3.6135.33083

Syntax

C#
public sealed class ApplicationStartupAttribute : Attribute
Visual Basic
Public NotInheritable Class ApplicationStartupAttribute _
	Inherits Attribute
Visual C++
public ref class ApplicationStartupAttribute sealed : public Attribute

Examples

CopyC#
[ApplicationStartup]
public class MyAppStartupHandler
{
    public static void OnBeforeInitialize()
    {
    }

    public static void OnInitialized()
    {
    }
}

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    Composite.Core.Application..::..ApplicationStartupAttribute

See Also