This commit is contained in:
+7
-1
@@ -58,6 +58,12 @@
|
||||
/// </summary>
|
||||
[Parameter] public int TimeoutSeconds { get; set; } = TestConnectBudget.DefaultSeconds;
|
||||
|
||||
/// <summary>
|
||||
/// The driver instance the config belongs to (lmxopcua#835: its own <c>secret:<ns>/<id>/…</c> references are
|
||||
/// allowed, another instance's are refused). Null ⇒ treated as a not-yet-created instance (stricter).
|
||||
/// </summary>
|
||||
[Parameter] public string? DriverInstanceId { get; set; }
|
||||
|
||||
private const int ClearAfterMs = 30_000;
|
||||
|
||||
private bool _busy;
|
||||
@@ -81,7 +87,7 @@
|
||||
var json = GetConfigJson() ?? "{}";
|
||||
var budget = TestConnectBudget.Resolve(json, TimeoutSeconds, DriverType);
|
||||
_lastBudgetSeconds = budget;
|
||||
_result = await Probe.TestAsync(DriverType, json, budget);
|
||||
_result = await Probe.TestAsync(DriverType, json, budget, driverInstanceId: DriverInstanceId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user