fix(dashboard): bounded alarm drains, feed resubscribe, live pill, drop dead hub factory; doc corrections
This commit is contained in:
@@ -27,23 +27,20 @@ public sealed class DashboardHubsRegistrationTests
|
||||
endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName == "DashboardHubToken");
|
||||
}
|
||||
|
||||
/// <summary>Verifies that dashboard build registers hub token service and connection factory.</summary>
|
||||
/// <summary>
|
||||
/// Verifies that dashboard build registers the hub token service. It is a singleton
|
||||
/// shared by the <c>/hubs/token</c> endpoint and <c>HubTokenAuthenticationHandler</c>;
|
||||
/// there is deliberately no client-side hub-connection factory to resolve, because
|
||||
/// server-rendered pages read the in-process feeds instead of dialling their own hubs.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task Build_WhenDashboardEnabled_RegistersHubTokenServiceAndConnectionFactory()
|
||||
public async Task Build_WhenDashboardEnabled_RegistersHubTokenService()
|
||||
{
|
||||
await using WebApplication app = GatewayApplication.Build([]);
|
||||
|
||||
// HubTokenService is singleton; DashboardHubConnectionFactory is scoped
|
||||
// (it captures NavigationManager and AuthenticationStateProvider which
|
||||
// are themselves per-circuit).
|
||||
HubTokenService tokens = app.Services.GetRequiredService<HubTokenService>();
|
||||
Assert.NotNull(tokens);
|
||||
|
||||
using IServiceScope scope = app.Services.CreateScope();
|
||||
DashboardHubConnectionFactory factory = scope.ServiceProvider
|
||||
.GetRequiredService<DashboardHubConnectionFactory>();
|
||||
Assert.NotNull(factory);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user