namespace ZB.MOM.WW.OtOpcUa.Client.Shared.Models; /// /// Event data raised when the client connection state changes. /// public sealed class ConnectionStateChangedEventArgs : EventArgs { /// Initializes a new instance of the ConnectionStateChangedEventArgs class. /// The previous connection state. /// The new connection state. /// The endpoint URL associated with the state change. public ConnectionStateChangedEventArgs(ConnectionState oldState, ConnectionState newState, string endpointUrl) { OldState = oldState; NewState = newState; EndpointUrl = endpointUrl; } /// The previous connection state. public ConnectionState OldState { get; } /// The new connection state. public ConnectionState NewState { get; } /// The endpoint URL associated with the state change. public string EndpointUrl { get; } }