39 instantiations of CapabilityDispatcher
Aspire.Hosting.RemoteHost.Tests (39)
CapabilityDispatcherTests.cs (39)
227
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
284
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestCancellationTokenContext).Assembly]);
343
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
421
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
443
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
462
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
481
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
514
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
532
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
553
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
573
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
632
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
655
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
676
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
699
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
767
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
907
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
922
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
946
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
979
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1001
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1031
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1046
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1070
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1103
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1137
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1163
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1185
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1202
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1219
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1236
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1253
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1317
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1336
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1356
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithMethods).Assembly]);
1377
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1394
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1411
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1426
return new
CapabilityDispatcher
(handles, marshaller, assemblies);
84 references to CapabilityDispatcher
Aspire.Hosting.RemoteHost (5)
Ats\CapabilityDispatcher.cs (2)
56
ILogger<
CapabilityDispatcher
> logger)
79
_logger = Microsoft.Extensions.Logging.Abstractions.NullLogger<
CapabilityDispatcher
>.Instance;
RemoteAppHostService.cs (2)
18
private readonly
CapabilityDispatcher
_capabilityDispatcher;
23
CapabilityDispatcher
capabilityDispatcher,
RemoteHostServer.cs (1)
62
services.AddScoped<
CapabilityDispatcher
>();
Aspire.Hosting.RemoteHost.Tests (79)
CapabilityDispatcherTests.cs (79)
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(typeof(TestCapabilities).Assembly);
167
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
179
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
191
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
204
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
217
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
227
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
247
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
259
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
271
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
284
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestCancellationTokenContext).Assembly]);
306
var
dispatcher = CreateDispatcher(typeof(VersionedContextType).Assembly);
320
var
dispatcher = CreateDispatcher(typeof(TestParentContextType).Assembly);
343
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
384
var
dispatcher = CreateDispatcher(typeof(AspireExportAttribute).Assembly);
408
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
421
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
443
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
462
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
481
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
502
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
514
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
532
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
553
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
573
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
592
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
604
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
613
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
632
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
655
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
676
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
699
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
715
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
727
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
739
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
751
var
dispatcher = CreateDispatcher(typeof(TestCapabilitiesWithBackgroundThreadDispatch).Assembly);
767
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
786
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
796
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
807
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
819
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
833
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
848
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
865
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
881
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
893
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
907
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
922
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
946
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
979
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1001
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1031
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
1046
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1070
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1103
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1137
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1163
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1185
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1202
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1219
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1236
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1253
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1317
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1336
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1356
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithMethods).Assembly]);
1377
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1394
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1411
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestResourceWithProperties).Assembly]);
1422
private static
CapabilityDispatcher
CreateDispatcher(params System.Reflection.Assembly[] assemblies)