private static void EventSource_Message(object sender, EventSource.ServerSentEventArgs e) { var serverSentEventArgs = e; var data = e.Data; var eventType = e.EventType; Console.WriteLine($"Event Type {eventType}, Event Data {data}"); }
private static void event_handler(object sender, EventSource.ServerSentEventArgs e) { Console.WriteLine("Trying to use event handler"); }