using System; namespace EmbedIO { /// /// Represents event arguments whenever the state of a web server changes. /// public class WebServerStateChangedEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The old state. /// The new state. public WebServerStateChangedEventArgs(WebServerState oldState, WebServerState newState) { OldState = oldState; NewState = newState; } /// /// Gets the state to which the application service changed. /// public WebServerState NewState { get; } /// /// Gets the old state. /// public WebServerState OldState { get; } } }