namespace ZB.MOM.WW.LmxOpcUa.Client.Shared.Models; /// /// Event data raised when the client connection state changes. /// public sealed class ConnectionStateChangedEventArgs : EventArgs { /// 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; } public ConnectionStateChangedEventArgs(ConnectionState oldState, ConnectionState newState, string endpointUrl) { OldState = oldState; NewState = newState; EndpointUrl = endpointUrl; } }