예제 #1
0
 /// <summary>
 /// Sends the connection status back to the caller
 /// </summary>
 /// <param name="status">Status of the connect attempt.</param>
 /// <param name="phase">Current phase of the connection attempt.</param>
 /// <param name="message">Optional message describing the connection status.</param>
 private void SendConnectionStatus(
     DeviceConnectionStatus status,
     DeviceConnectionPhase phase,
     string message = "")
 {
     this.ConnectionStatus?.Invoke(this, new DeviceConnectionStatusEventArgs(status, phase, message));
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceConnectionStatusEventArgs"/> class.
 /// </summary>
 /// <param name="status">Status of the connection</param>
 /// <param name="phase">Phase of the connection</param>
 /// <param name="message">Optional message describing our connection/phase</param>
 internal DeviceConnectionStatusEventArgs(
     DeviceConnectionStatus status,
     DeviceConnectionPhase phase,
     string message = "")
 {
     this.Status  = status;
     this.Phase   = phase;
     this.Message = message;
 }