4b374fd177
- AdminProbeService routes TestDriverConnect through IAdminOperationsClient with a 65s outer guard (actor side already clamps to [1,60]). - Added generic AskAsync<T> to IAdminOperationsClient interface and AdminOperationsClient impl, delegating straight to the Akka proxy. - DriverTestConnectButton renders the button + inline result chip, auto-clears after 30s, disables during in-flight. - Wired into all 9 typed driver pages directly under the identity section. Sources timeout from the form's ProbeTimeoutSeconds; sources config JSON from the form's current Options (operator can test BEFORE saving).
21 lines
829 B
C#
21 lines
829 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using ZB.MOM.WW.OtOpcUa.Commons.Interfaces;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Clients;
|
|
|
|
/// <summary>Service collection extensions for Admin UI client registration.</summary>
|
|
public static class ServiceCollectionExtensions
|
|
{
|
|
/// <summary>
|
|
/// Registers the Admin UI client services in the dependency injection container.
|
|
/// </summary>
|
|
/// <param name="services">The service collection to register clients into.</param>
|
|
public static IServiceCollection AddOtOpcUaAdminClients(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IAdminOperationsClient, AdminOperationsClient>();
|
|
services.AddScoped<IFleetDiagnosticsClient, FleetDiagnosticsClient>();
|
|
services.AddScoped<AdminProbeService>();
|
|
return services;
|
|
}
|
|
}
|