Platform Symphony .NET API Reference - Version 5.1
InterruptEvent Class
NamespacesPlatform.Symphony.SoamInterruptEvent
An object that encapsulates an interruption of the service.
Declaration Syntax
C#
public sealed class InterruptEvent
Members
All MembersProperties



IconMemberDescription
EventCode
Gets the interrupt event code. Value can be one of:
  • InterruptEventCode.None
  • InterruptEventCode.TaskKilled
  • InterruptEventCode.TaskSuspended

GracePeriod
Returns the interrupt grace period, in milliseconds. The service will have this much time in which to clean up, before being forcefully killed.

Remarks
This object encapsulates following information:
  • an event code, to determine the type of event that occurred
  • a grace period, which indicates how much time the service will have to react to the event before being forcefully killed
  • Get the last InterruptEvent from the ServiceContext.

    NOTE: If any of the methods of this class are called after the Main(...) method exits, the client or service process may behave in an undefined manner (for example, hang or terminate abnormally).

    Inheritance Hierarchy
    Object
    InterruptEvent
    See Also

    Assembly: Platform.Symphony.Soam.Net (Module: Platform.Symphony.Soam.Net) Version: 5.1.0.0