IStartupSequence Interface

Members  Example 

Implement this interface in order to have custom code run at system start up.

Syntax

'Declaration
 
Public Interface IStartupSequence 
public interface IStartupSequence 

Example

namespace SampleCode {
    using KalikoCMS.Core;

	// Implement IStartupSequence in order for Kaliko CMS to run this code at startup
    public class MyStartup : IStartupSequence {
        public void Startup() {
            // Do some custom code at system startup
        }

        // Run before database setup etc.
        public int StartupOrder { get { return -10; } }
    }
}

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys