16 references to Resource
Aspire.Hosting (3)
ResourceBuilderExtensions.cs (3)
1059
var serviceName = name ?? annotation.
Resource
.Name;
1068
foreach (var endpoint in annotation.
Resource
.GetEndpoints(annotation.ContextNetworkId))
1711
.Where(sra => sra.
Resource
== resourceWithEndpoints)
Aspire.Hosting.Blazor (6)
BlazorGatewayExtensions.cs (5)
310
if (!existingGatewayRefs.Contains(endpointRef.
Resource
.Name))
764
.Where(a => a.
Resource
is IResourceWithServiceDiscovery)
779
var service = new GatewayAppService(annotation.
Resource
.Name);
799
.Select(a => a.
Resource
.Name)
814
var svcResource = (IResourceWithServiceDiscovery)endpointRef.
Resource
;
BlazorHostedExtensions.cs (1)
270
.Select(a => a.
Resource
.Name)
Aspire.Hosting.Blazor.Tests (7)
AddBlazorGatewayTests.cs (1)
498
annotation => annotation.
Resource
.Name == "weatherapi");
BlazorHostedExtensionsTests.cs (3)
415
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
466
.Count(a => a.
Resource
.Name == "weatherapi");
488
.Select(a => a.
Resource
.Name)
WithBlazorAppTests.cs (3)
399
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
428
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
469
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");