CTBCAFServiceCmMgmtClient

From TBwiki
Revision as of 09:43, 30 May 2011 by Abrassard (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The class CTBCAFServiceCmMgmtClient is used by applications that want to be informed of the current active configuration, and active database connection string.

An application that initializes this class has to provide a callback to interface ITBCAFServiceCmMgmtClient. This interface provides 3 functions that the application must implement:

  • OnValidateConfig: Tells the application to validate the given configuration. This is already handled by standard, Toolpack applications so it's not required to do anything here.
  • OnReloadConfig: Tells the application that the configuration has been modified (or active configuration changed), and the application must reload any information from the database that it previously loaded and kept locally
  • OnDbMaintenance: This function is called to indicate to the application that the database is in maintenance mode (or unavailable) and should not be accessed. A call to OnReloadConfig will indicate when the database is ready again.


Example usage

Personal tools