The middleware triggers the invocation of this handler every time an interrupt arrives.

C# |
public virtual void OnServiceInterrupt( ServiceContext serviceContext )

- serviceContext (ServiceContext)
- The context contains the information about the service interrupt. This interrupt contains the interrupt type (InterruptTaskKilled or InterruptTaskSuspended) and the task grace period.

The application developer must put any service interrupt handling code into this handler. Default implementation does nothing.

Exception | Condition |
---|---|
[Platform.Symphony.Soam.SoamException] | Any exception thrown in this method would be ignored. |

[Platform.Symphony.Soam.ServiceContext]