|
ORE Studio 0.0.4
|
Holds all shared services for the ores.wt.service application. More...
#include <application_context.hpp>

Public Member Functions | |
| void | initialize (const database::database_options &db_opts) |
| bool | is_initialized () const |
| void | start_eventing () |
| Start the event source to listen for PostgreSQL notifications. | |
| void | stop_eventing () |
| Stop the event source. | |
| database::context & | db_context () |
| iam::service::account_service & | account_service () |
| iam::service::account_setup_service & | account_setup_service () |
| iam::service::authorization_service & | authorization_service () |
| variability::service::system_settings_service & | system_settings_service () |
| refdata::service::currency_service & | currency_service () |
| refdata::service::country_service & | country_service () |
| bool | is_bootstrap_mode () const |
Static Public Member Functions | |
| static application_context & | instance () |
Holds all shared services for the ores.wt.service application.
This is a singleton that is initialized at application startup and shared across all Wt sessions. It manages the database connection and domain services.
| void start_eventing | ( | ) |
Start the event source to listen for PostgreSQL notifications.
Call this after initialize() to begin receiving database change events.
| void stop_eventing | ( | ) |
Stop the event source.
Call this during shutdown to cleanly stop listening for notifications.