24 lines
617 B
C#
24 lines
617 B
C#
using RobotNet10.RobotApp.Client.Shared.Devices;
|
|
|
|
namespace RobotNet10.RobotApp.Devices;
|
|
|
|
/// <summary>
|
|
/// Event args khi có lỗi xảy ra
|
|
/// </summary>
|
|
public class DeviceErrorEventArgs : EventArgs
|
|
{
|
|
public Exception Exception { get; }
|
|
public DeviceStatus Status { get; }
|
|
public string? Context { get; }
|
|
public DateTime Timestamp { get; }
|
|
|
|
public DeviceErrorEventArgs(Exception exception, DeviceStatus status, string? context = null)
|
|
{
|
|
Exception = exception;
|
|
Status = status;
|
|
Context = context;
|
|
Timestamp = DateTime.UtcNow;
|
|
}
|
|
}
|
|
|