14 references to CallbackInvoker
Aspire.Hosting.RemoteHost.Tests (14)
ExternalCapabilityRegistryTests.cs (12)
198
await registry.TryInvokeAsync("test.external/callback", new JsonObject { ["configure"] = "guest_callback" }, guest.
CallbackInvoker
);
206
registry.RemoveGuestCallbacks(guest.
CallbackInvoker
);
211
"test.external/callback", new JsonObject { ["configure"] = "late_callback" }, guest.
CallbackInvoker
));
370
registry.AddIntegrationHost("integration", integration.ServerRpc, integration.
CallbackInvoker
);
424
Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("unknown", connection.ServerRpc, connection.
CallbackInvoker
));
426
registry.AddIntegrationHost("attempt", connection.ServerRpc, connection.
CallbackInvoker
);
428
Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("attempt", connection.ServerRpc, connection.
CallbackInvoker
));
442
Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("old", connection.ServerRpc, connection.
CallbackInvoker
));
444
registry.AddIntegrationHost("replacement", connection.ServerRpc, connection.
CallbackInvoker
);
456
registry.AddIntegrationHost("original", original.ServerRpc, original.
CallbackInvoker
);
461
original.
CallbackInvoker
.RegisterCallback();
466
Assert.Throws<ObjectDisposedException>(original.
CallbackInvoker
.RegisterCallback);
TestServices\IntegrationHostTestConnection.cs (2)
44
CallbackInvoker
.SetConnection(ServerRpc);
79
CallbackInvoker
.Dispose();