OnReload Method
Registers a block to run when the operating system asks for a configuration reload.
Remarks
Call it from inside the hosted block, where the objects it touches are in scope and the closure captures them.
The block runs on the thread that received the request, not on the application thread, and on Windows that thread has to return to the SCM quickly. Keep it short and thread safe. An exception escaping it is logged and swallowed: a failed reload is not a reason to bring the service down.
More than one block may be registered; they run in registration order.
Syntax
Unit: Sparkle.Host.Reload
procedure OnReload(const AProc: TProc);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AProc | TProc |