Alarms, Events and AuditTrail > Subscribing Notifications
  
Subscribing Notifications
In order to apply custom actions using .NET scripts, you can subscribe to notifications or alarms and events.
The typical usage is to send SMS or email warnings, execute custom calculations, add custom notification messages or audio alarms, text-to-speech audio alarms, and any kind of custom action programmed using the Microsoft .NET Framework.
To subscribe to alarm events, you need to create a method in any Script Class of type Server, with the following prototype:
void Notification(AlarmEventInfo[] info)
 
Finally, you need to select that method on Edit > Alarms >Groups at the NotificationMethod Column.
The name of method can vary, what is important is the expected parameters of the method. The AlarmEventInfo structure is defined in the namespace Alarm on the runtime classes reference, http://www.tatsoft.com/help/fs-2014/runtime/index.html.