CapabilityDispatcherTests.cs (111)
57dispatcher.Invoke("test/capability@1", null);
73dispatcher.Invoke("test/capability@1", new JsonObject { ["name"] = "test-value" });
84var result = dispatcher.Invoke("test/capability@1", null);
96dispatcher.Invoke("nonexistent/capability@1", null));
114dispatcher.Invoke("test/capability@1", null));
133dispatcher.Invoke("test/capability@1", null));
151dispatcher.Invoke("test/capability@1", null));
165dispatcher.Invoke("test/capability@1", null));
186var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/testMethod", args);
198var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withOptional", args);
210var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withOptional", args);
223dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/throwsArgumentException", args));
265var nameResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args);
266var countResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.count", args);
280dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", null));
293dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args));
305dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.name", args));
321var tokenResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestCancellationTokenContext.cancellationToken", getArgs);
327var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/canObserveCancellation", invokeArgs);
382var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestParentContextType.nestedContext", args);
399var operationResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestNestedContextType.operation", nestedArgs);
463dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setName", args);
483dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setCount", args);
502dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setIsEnabled", args);
522dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestContextType.setName", args));
553dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.doSomething", args);
573var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.calculateSum", args);
593var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.processAsync", args);
613var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestTypeWithMethods.processValueTaskAsync", args);
625var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncValueTaskWithResult", args);
670var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withCallback", args);
692dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/invokeCallback", args);
713dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/invokeTypedCallback", args);
736var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withAsyncCallback", args);
748var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/syncInlineThreadProbe", null);
760var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/syncBackgroundThreadProbe", null);
772var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/taskBackgroundThreadProbe", null);
786dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/nonGenericTaskBackgroundThreadProbe", null);
797var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/valueTaskBackgroundThreadProbe", null);
811dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/nonGenericValueTaskBackgroundThreadProbe", null);
828dispatcher.Invoke(
852dispatcher.Invoke(
880dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withCallback", args));
905dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncVoid", args);
914var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncWithResult", args);
927dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/asyncThrows", args));
943var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/sumArray", args);
955var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnArray", args);
975var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptReadOnlyList", args);
988var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args);
1000var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args);
1018var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptDtoUnion", args);
1030var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args);
1042var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args);
1061dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnumStringUnion", args));
1083var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptHandleUnion", args);
1099dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args));
1120dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptUnion", args));
1135var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1151var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1162var result = dispatcher.Invoke("Aspire.Hosting/List.get", args);
1174var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnTypedMutableList", null);
1184var result = dispatcher.Invoke("Aspire.Hosting/List.get", args);
1197var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1207var removeResult = dispatcher.Invoke("Aspire.Hosting/List.removeAt", removeArgs);
1217var lengthResult = dispatcher.Invoke("Aspire.Hosting/List.length", lengthArgs);
1230var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1239var result = dispatcher.Invoke("Aspire.Hosting/List.length", args);
1252var listResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableList", null);
1261dispatcher.Invoke("Aspire.Hosting/List.clear", clearArgs);
1268var lengthResult = dispatcher.Invoke("Aspire.Hosting/List.length", lengthArgs);
1281var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1297var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1308var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1320var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnTypedMutableDict", null);
1330var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1342var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1352var result = dispatcher.Invoke("Aspire.Hosting/Dict.get", args);
1365var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1375var removeResult = dispatcher.Invoke("Aspire.Hosting/Dict.remove", removeArgs);
1385var countResult = dispatcher.Invoke("Aspire.Hosting/Dict.count", countArgs);
1398var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1408var hasResult = dispatcher.Invoke("Aspire.Hosting/Dict.has", hasArgs);
1419var hasResult2 = dispatcher.Invoke("Aspire.Hosting/Dict.has", hasArgs2);
1432var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1441var result = dispatcher.Invoke("Aspire.Hosting/Dict.keys", args);
1457var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1466var result = dispatcher.Invoke("Aspire.Hosting/Dict.keys", args);
1481var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnIntKeyMutableDict", null);
1490var ex = Assert.Throws<CapabilityException>(() => dispatcher.Invoke("Aspire.Hosting/Dict.toObject", args));
1501var dictResult = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnMutableDict", null);
1510var result = dispatcher.Invoke("Aspire.Hosting/Dict.count", args);
1527var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnum", args);
1544var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptEnum", args);
1561var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/returnEnum", args);
1578var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptOptionalEnum", args);
1590var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/acceptOptionalEnum", new JsonObject());
1679var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args);
1700dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.setColor", args);
1720var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithMethods.greet", args);
1737var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args);
1754var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.name", args);
1770dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.color", args));
1794dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withReference", args));
1817dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withEndpoint", args));
1839dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
1861dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
1882dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withHttpEndpoint", args));
1909dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/TestResourceWithProperties.setColor", args));
1937dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/withReference", args));
2097var result = dispatcher.Invoke("Aspire.Hosting.RemoteHost.Tests/findConnectionPropertyKey", args);