Bootstrapper Events

The Telerik.Sitefinity.Abstractions. Bootstrapper class is responsible for Sitefinity CMS initialization. The events exposed by Bootstrapper enable you to execute logic prior to the point when Sitefinity loads its UI (administrative and frontend) for users, thus giving you control over the state in which Sitefinity is served. Most common scenarios when using the Bootstrapper events include working with objects in the Unity container (ObjectFactory), registering custom routes, dialogs, and so on.

Bootstrapper.Bootstrapped

Bootstrapper exposes several public events. However, we recommend using the Bootstrapped event in most scenarios. The event is fired at the last stage of the bootstrapping process when the system has already initialized the Unity container, registered routes and modules, and finalized module upgrades (if any). For more information about Sitefinity startup process, see Sitefinity CMS startup process.

Following is an example demonstrating how to subscribe to the Bootstrapped event in Global.asax and replace one of the default types used by Sitefinity with a custom type via ObjectFactory:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?