namespace ZB.MOM.WW.OtOpcUa.Client.Shared.Models; /// /// Event data raised when the client connection state changes. /// public sealed class ConnectionStateChangedEventArgs : EventArgs { 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; } }