Is your feature request related to a problem? Please describe.
Need to be able to register callback for ServerApplication termination
Describe the solution you'd like
static std::function defaulting to nullptr; if set, called on the event and set back to nullptr
Additional context
Probably may make sense to add for some other events other than termination
Is your feature request related to a problem? Please describe.
Need to be able to register callback for
ServerApplicationterminationDescribe the solution you'd like
static std::functiondefaulting tonullptr; if set, called on the event and set back tonullptrAdditional context
Probably may make sense to add for some other events other than termination