8 references to AddIntegrationHost
Aspire.Hosting.RemoteHost (1)
RemoteAppHostService.cs (1)
209_externalCapabilityRegistry.AddIntegrationHost(registrationId, _clientRpc, _callbackInvoker);
Aspire.Hosting.RemoteHost.Tests (7)
ExternalCapabilityRegistryTests.cs (7)
370registry.AddIntegrationHost("integration", integration.ServerRpc, integration.CallbackInvoker); 424Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("unknown", connection.ServerRpc, connection.CallbackInvoker)); 426registry.AddIntegrationHost("attempt", connection.ServerRpc, connection.CallbackInvoker); 428Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("attempt", connection.ServerRpc, connection.CallbackInvoker)); 442Assert.Throws<InvalidOperationException>(() => registry.AddIntegrationHost("old", connection.ServerRpc, connection.CallbackInvoker)); 444registry.AddIntegrationHost("replacement", connection.ServerRpc, connection.CallbackInvoker); 456registry.AddIntegrationHost("original", original.ServerRpc, original.CallbackInvoker);