fix: retain certificate ownership and optional alarm workflows
This commit is contained in:
@@ -73,6 +73,8 @@ namespace ZB.MOM.WW.OtOpcUa.OpcUaServer;
|
|||||||
/// <paramref name="NextStartUtc"/> that still has un-emitted ties — the next page over-fetches the cluster directly
|
/// <paramref name="NextStartUtc"/> that still has un-emitted ties — the next page over-fetches the cluster directly
|
||||||
/// instead of first re-reading <c>N + skip + 1</c> rows that are known to be ties.
|
/// instead of first re-reading <c>N + skip + 1</c> rows that are known to be ties.
|
||||||
/// </param>
|
/// </param>
|
||||||
|
/// <param name="BoundNodeKey">The exact namespace-qualified node identity; required on every production cursor.</param>
|
||||||
|
/// <param name="AddressSpaceEpoch">The topology generation. A removal conservatively invalidates all cursors.</param>
|
||||||
internal sealed record HistoryContinuationState(
|
internal sealed record HistoryContinuationState(
|
||||||
string Tagname,
|
string Tagname,
|
||||||
DateTime NextStartUtc,
|
DateTime NextStartUtc,
|
||||||
|
|||||||
@@ -519,8 +519,10 @@ public sealed class OpcUaApplicationHost : IAsyncDisposable
|
|||||||
ClientConfiguration = new ClientConfiguration(),
|
ClientConfiguration = new ClientConfiguration(),
|
||||||
};
|
};
|
||||||
|
|
||||||
await config.ValidateAsync(ApplicationType.Server, ct).ConfigureAwait(false);
|
// Validation creates the certificate manager before awaiting certificate loads. Give the
|
||||||
|
// application ownership first so failed/canceled startup disposes that manager too.
|
||||||
_application!.ApplicationConfiguration = config;
|
_application!.ApplicationConfiguration = config;
|
||||||
|
await config.ValidateAsync(ApplicationType.Server, ct).ConfigureAwait(false);
|
||||||
return config;
|
return config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1527,6 +1527,8 @@ public sealed class OtOpcUaNodeManager : CustomNodeManager2
|
|||||||
// Both are part of the application's existing Part 9 method/state contract.
|
// Both are part of the application's existing Part 9 method/state contract.
|
||||||
alarm.ConfirmedState = new TwoStateVariableState(alarm);
|
alarm.ConfirmedState = new TwoStateVariableState(alarm);
|
||||||
alarm.Confirm = new AddCommentMethodState(alarm);
|
alarm.Confirm = new AddCommentMethodState(alarm);
|
||||||
|
alarm.ShelvingState = new ShelvedStateMachineState(alarm);
|
||||||
|
alarm.MaxTimeShelved = new PropertyState<double>.Implementation<VariantBuilder>(alarm);
|
||||||
alarm.SymbolicName = displayName;
|
alarm.SymbolicName = displayName;
|
||||||
// HasComponent so the parent folder "owns" the condition (matches the T13 notes' pattern).
|
// HasComponent so the parent folder "owns" the condition (matches the T13 notes' pattern).
|
||||||
alarm.ReferenceTypeId = ReferenceTypeIds.HasComponent;
|
alarm.ReferenceTypeId = ReferenceTypeIds.HasComponent;
|
||||||
|
|||||||
Reference in New Issue
Block a user