@using ZB.MOM.WW.OtOpcUa.AdminUI.Components.Shared.Drivers Resilience overrides (optional) Blank fields use the driver type's stability-tier defaults (see docs/v2/driver-stability.md). Set only what you need to override. Bulkhead max concurrent Bulkhead max queue Recycle interval (s, Tier C only) CapabilityTimeout (s)RetriesBreaker threshold @foreach (var cap in ResilienceFormModel.Capabilities) { var row = _m.Policies[cap]; @cap } Raw JSON (advanced) @(_m.ToJson() ?? "(null — all tier defaults)") @code { [Parameter] public string? ResilienceConfig { get; set; } [Parameter] public EventCallback ResilienceConfigChanged { get; set; } private ResilienceFormModel _m = new(); private string? _lastParsed; protected override void OnParametersSet() { // Re-parse only when the inbound value actually changed (avoid clobbering edits on re-render). if (!string.Equals(_lastParsed, ResilienceConfig, StringComparison.Ordinal)) { _m = ResilienceFormModel.FromJson(ResilienceConfig); _lastParsed = ResilienceConfig; } } private async Task EmitAsync() { var json = _m.ToJson(); _lastParsed = json; ResilienceConfig = json; await ResilienceConfigChanged.InvokeAsync(json); } }
Blank fields use the driver type's stability-tier defaults (see docs/v2/driver-stability.md). Set only what you need to override.
@(_m.ToJson() ?? "(null — all tier defaults)")