sil-kit
sil-kit copied to clipboard
Demo how to Stop/ForceStop in any State
Basic idea:
- Call
lifecycleService->Stop()only inRunning/Pausedstate. - If the participant is in the wrong state to do so, a
stopRequestis flagged and a timer is started. - If a stop is requested and the participant reaches
Running/Pausedin time, the graceful stop vialifecycleService->Stop()is performed. - If not, the timer fires and deletes the participant.