Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user