refactor(historian): Gateway served set behind GatewayHistorianDataSource.ServedAggregates (#682, merge seam for #681)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-10-12 08:57:19 -04:00
parent 6ea3ba44da
commit ede8610804
4 changed files with 13 additions and 8 deletions
@@ -132,12 +132,16 @@ public sealed class GatewayHistorianDataSource : IHistorianDataSource, IAsyncDis
/// </remarks>
public bool SupportsReverseEvents => false;
/// <summary>
/// The aggregates the Gateway backend serves — the single static the advertised <c>AggregateFunctions</c> folders
/// and the server's up-front <c>BadAggregateNotSupported</c> read through <see cref="SupportedAggregates"/> (#682).
/// Today: <see cref="AggregateModeMapper.Served"/>, the members the gateway has a retrieval mode for.
/// </summary>
public static readonly IReadOnlySet<HistoryAggregateType> ServedAggregates = AggregateModeMapper.Served;
/// <inheritdoc />
/// <remarks>
/// <see cref="AggregateModeMapper.Served"/> — the aggregates the gateway has a retrieval mode for (#682); every
/// other member answers <c>BadAggregateNotSupported</c> and is not advertised.
/// </remarks>
public IReadOnlySet<HistoryAggregateType> SupportedAggregates => AggregateModeMapper.Served;
/// <remarks><see cref="ServedAggregates"/>; every other member answers <c>BadAggregateNotSupported</c> and is not advertised.</remarks>
public IReadOnlySet<HistoryAggregateType> SupportedAggregates => ServedAggregates;
/// <inheritdoc />
/// <remarks>