System Flags

System Flags are an important mechanism allowing you to detect the state of Sitefinity CMS in your code and act accordingly. This section contains a description of the system flags available in Sitefinity and what scenarios you should use them for.

IsReady

The IsReady flag is exposed by the Telerik.Sitefinity.Abstractions.Bootstrapper class and is the recommended way to ensure whether the application is ready to serve your requests. The flag is set to true once Sitefinity CMS has finished the bootstrapping process, and this basically means the system has initialized and started. This is important because in certain scenarios you’d need to ensure Sitefinity CMS has not only initialized, but also prepared the database and warmed up, prior to submitting requests to it. IsReady=true means exactly that. If the flag is set to false this indicates Sitefinity is still in the process of initialization and preparing to serve requests. Some parts of your code might depend on this, so you will want to set a condition and execute your code only when IsReady=true. A typical example can be a background task that reads some information from Sitefinity and processes it. If Sitefinity is not ready you wouldn’t want to request any data from it yet. For example:

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?

Next article

Webhook