fix: preserve history sentinels and alarm SDK metadata

This commit is contained in:
Joseph Doherty
2026-11-10 10:20:53 -05:00
parent 33c7dc4292
commit 3dcb035f89
4 changed files with 23 additions and 12 deletions
@@ -30,8 +30,8 @@ internal static class AdvertisedAggregateFunctions
private static readonly object SyncGate = new();
/// <summary>Every standard aggregate-function NodeId the SDK's nodeset knows (<c>ObjectIds.AggregateFunction_*</c>).</summary>
private static readonly NodeId[] StandardAggregateIds = typeof(ObjectIds)
.GetFields(BindingFlags.Public | BindingFlags.Static)
.Where(f => f.FieldType == typeof(NodeId) && f.Name.StartsWith("AggregateFunction_", StringComparison.Ordinal))
.GetProperties(BindingFlags.Public | BindingFlags.Static)
.Where(f => f.PropertyType == typeof(NodeId) && f.Name.StartsWith("AggregateFunction_", StringComparison.Ordinal))
.Select(f => (NodeId)f.GetValue(null)!)
.ToArray();