using System; namespace LaunchDarkly.EventSource { /// /// The parameter type for a event handler. /// /// public class MessageReceivedEventArgs : EventArgs { /// /// A representing the event that was received from the /// SSE stream. /// public MessageEvent Message { get; } /// /// Shortcut for getting the property of the event. /// public string EventName => Message.Name; /// /// Initializes a new instance. /// /// the received from the stream public MessageReceivedEventArgs(MessageEvent message) { Message = message; } } }