9 internal class ScheduledEvent
11 private readonly DateTime when;
13 private readonly
object state;
24 this.eventMethod = EventMethod;
37 this.eventMethod = this.AsyncCallback;
38 this.state =
new object[] { EventMethod, State };
41 private async
void AsyncCallback(
object State)
45 object[] P = (
object[])State;
49 if (!(Callback is
null))
50 await Callback(State);
61 public DateTime When => this.when;
71 public object State => this.state;
78 if (!(this.eventMethod is
null))
82 this.eventMethod(this.state);
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
delegate void ScheduledEventCallback(object State)
Callback method for scheduled events.
delegate Task ScheduledEventCallbackAsync(object State)
Callback method for asynchronous scheduled events.