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.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. 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?