Scheduler.Stop

Causes the processing to stop. If the operation is still active it will stop after the current message processing completes

public void Stop()