55 instantiations of CapabilityDispatcher
Aspire.Hosting.RemoteHost.Tests (55)
CapabilityDispatcherTests.cs (55)
257
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
314
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestCancellationTokenContext).Assembly]);
373
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
451
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
473
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
492
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
511
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
544
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
562
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
583
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
603
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
662
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
685
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
706
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
729
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
823
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly]);
844
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly]);
871
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
1073
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1133
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1148
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1172
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1194
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1227
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1249
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1279
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1294
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1318
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1340
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1362
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1395
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1429
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1455
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1479
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1498
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1520
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1537
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1554
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1571
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1588
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1670
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1689
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1709
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithMethods).Assembly]);
1730
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1747
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1764
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1781
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
1807
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
1829
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1851
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1872
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1896
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1924
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
2085
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestRawResourceCapabilities).Assembly]);
2107
return new
CapabilityDispatcher
(handles, marshaller, assemblies);
111 references to CapabilityDispatcher
Aspire.Hosting.RemoteHost (5)
Ats\CapabilityDispatcher.cs (2)
67
ILogger<
CapabilityDispatcher
> logger,
92
_logger = Microsoft.Extensions.Logging.Abstractions.NullLogger<
CapabilityDispatcher
>.Instance;
RemoteAppHostService.cs (2)
23
private readonly
CapabilityDispatcher
_capabilityDispatcher;
29
CapabilityDispatcher
capabilityDispatcher,
RemoteHostServer.cs (1)
99
services.AddScoped<
CapabilityDispatcher
>();
Aspire.Hosting.RemoteHost.Tests (106)
CapabilityDispatcherTests.cs (105)
17
var
dispatcher = CreateDispatcher();
28
var
dispatcher = CreateDispatcher();
36
var
dispatcher = CreateDispatcher();
49
var
dispatcher = CreateDispatcher();
65
var
dispatcher = CreateDispatcher();
81
var
dispatcher = CreateDispatcher();
93
var
dispatcher = CreateDispatcher();
104
var
dispatcher = CreateDispatcher();
123
var
dispatcher = CreateDispatcher();
141
var
dispatcher = CreateDispatcher();
159
var
dispatcher = CreateDispatcher();
175
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
183
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
195
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
207
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
219
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
234
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
247
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
257
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
277
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
289
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
301
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
314
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestCancellationTokenContext).Assembly]);
336
var
dispatcher = CreateDispatcher(typeof(VersionedContextType).Assembly);
350
var
dispatcher = CreateDispatcher(typeof(TestParentContextType).Assembly);
373
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
414
var
dispatcher = CreateDispatcher(typeof(AspireExportAttribute).Assembly);
438
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
451
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
473
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
492
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
511
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
532
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
544
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
562
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
583
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
603
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
622
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
634
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
643
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
662
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
685
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
706
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
729
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
745
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
757
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
769
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
781
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
794
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
806
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
823
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly]);
844
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly]);
871
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
890
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
900
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
911
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
923
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
937
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
952
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
969
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
985
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
997
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1009
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1027
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1039
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1051
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1073
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1092
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1110
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
1133
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1148
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1172
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1194
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1227
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1249
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1279
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1294
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1318
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1340
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1362
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1395
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1429
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1455
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1479
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1498
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1520
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1537
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1554
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1571
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1588
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1670
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1689
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1709
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithMethods).Assembly]);
1730
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1747
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1764
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1781
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
1807
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
1829
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1851
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1872
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestGenericPolyglotErrorCapabilities).Assembly]);
1896
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1924
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestPolyglotErrorCapabilities).Assembly]);
2085
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestRawResourceCapabilities).Assembly]);
2103
private static
CapabilityDispatcher
CreateDispatcher(params System.Reflection.Assembly[] assemblies)
JsonRpcAuthenticationTests.cs (1)
181
services.AddScoped<Ats.
CapabilityDispatcher
>();