worker(alarms): WriteRecord as class not positional record (net48 has no IsExternalInit)
This commit is contained in:
@@ -204,6 +204,23 @@ public sealed class LmxSubtagAlarmSourceTests
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
internal sealed record WriteRecord(int ServerHandle, int ItemHandle, object? Value, int UserId);
|
internal sealed class WriteRecord
|
||||||
|
{
|
||||||
|
public WriteRecord(int serverHandle, int itemHandle, object? value, int userId)
|
||||||
|
{
|
||||||
|
ServerHandle = serverHandle;
|
||||||
|
ItemHandle = itemHandle;
|
||||||
|
Value = value;
|
||||||
|
UserId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int ServerHandle { get; }
|
||||||
|
|
||||||
|
public int ItemHandle { get; }
|
||||||
|
|
||||||
|
public object? Value { get; }
|
||||||
|
|
||||||
|
public int UserId { get; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user