31 instantiations of CapabilityDispatcher
Aspire.Hosting.RemoteHost.Tests (31)
CapabilityDispatcherTests.cs (31)
226
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
319
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
397
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
419
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
438
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
457
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
490
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
508
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
529
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
576
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
599
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
620
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
643
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
662
var dispatcher = new
CapabilityDispatcher
(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
802
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
817
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
841
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
874
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
896
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
926
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
941
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
965
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
998
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1032
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1058
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1080
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1097
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1114
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1131
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1148
var dispatcher = new
CapabilityDispatcher
(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1160
return new
CapabilityDispatcher
(handles, marshaller, assemblies);
71 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)
19
private readonly
CapabilityDispatcher
_capabilityDispatcher;
24
CapabilityDispatcher
capabilityDispatcher,
RemoteHostServer.cs (1)
58
services.AddScoped<
CapabilityDispatcher
>();
Aspire.Hosting.RemoteHost.Tests (66)
CapabilityDispatcherTests.cs (66)
16
var
dispatcher = CreateDispatcher();
27
var
dispatcher = CreateDispatcher();
35
var
dispatcher = CreateDispatcher();
48
var
dispatcher = CreateDispatcher();
64
var
dispatcher = CreateDispatcher();
80
var
dispatcher = CreateDispatcher();
92
var
dispatcher = CreateDispatcher();
103
var
dispatcher = CreateDispatcher();
122
var
dispatcher = CreateDispatcher();
140
var
dispatcher = CreateDispatcher();
158
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
166
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
178
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
190
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
203
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
216
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
226
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
246
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
258
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
270
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
282
var
dispatcher = CreateDispatcher(typeof(VersionedContextType).Assembly);
296
var
dispatcher = CreateDispatcher(typeof(TestParentContextType).Assembly);
319
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestParentContextType).Assembly]);
360
var
dispatcher = CreateDispatcher(typeof(AspireExportAttribute).Assembly);
384
var
dispatcher = CreateDispatcher(typeof(TestContextType).Assembly);
397
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
419
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
438
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
457
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestContextType).Assembly]);
478
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
490
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
508
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
529
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeWithMethods).Assembly]);
548
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
557
var
dispatcher = CreateDispatcher(typeof(TestTypeWithMethods).Assembly);
576
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
599
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
620
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
643
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
662
var
dispatcher = new CapabilityDispatcher(handles, marshaller, [typeof(TestCapabilitiesWithCallback).Assembly]);
681
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
691
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
702
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
714
var
dispatcher = CreateDispatcher(typeof(TestCapabilities).Assembly);
728
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
743
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
760
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
776
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
788
var
dispatcher = CreateDispatcher(typeof(TestTypeCategoryCapabilities).Assembly);
802
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
817
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
841
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
874
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
896
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
926
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly]);
941
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
965
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
998
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1032
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1058
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestTypeCategoryCapabilities).Assembly, typeof(AspireExportAttribute).Assembly]);
1080
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1097
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1114
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1131
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1148
var
dispatcher = new CapabilityDispatcher(handles, CreateTestMarshaller(handles), [typeof(TestEnumCapabilities).Assembly]);
1156
private static
CapabilityDispatcher
CreateDispatcher(params System.Reflection.Assembly[] assemblies)