You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.

Scopes

When developing dynamic containers or custom services it is very common to use one of the scopes provided on the IPortalContext. Scopes can be used to temporarily store data which can be used by other custom components. The scopes which can be used are:

  • Request scope
  • Page scope
  • Flow scope
  • Session scope
  • User scope

Every scope has its own lifecycle and therefore it is important to carefully choose a scope that fits your needs in order to avoid unnecessary memory growth. See the diagram below for a detailed view on scope lifecycles.

Scopes and their lifecycles