public abstract class WebCustomEvent : WebBaseEvent
{
public WebCustomEvent(string message, object eventSource, int eventCode)
: base(message, eventSource, eventCode) { }
}
This is an abstract class that defines a base for custom events that can be implemented in the application.
You'll notice that there is a class called RecordDeletedEvent that implements this abstract class.
In each of the the Delete methods in the code, there is a line that raises this event. Then, the health monitoring system logs the RecordDeletedEvent in the database, so that you can look up who deleted what record, and when they deleted it.
By implementing WebCustomEvent in other classes, you could log any application event you care to track.
|