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)
313
if (!existingGatewayRefs.Contains(endpointRef.
Resource
.Name))
767
.Where(a => a.
Resource
is IResourceWithServiceDiscovery)
782
var service = new GatewayAppService(annotation.
Resource
.Name);
802
.Select(a => a.
Resource
.Name)
817
var svcResource = (IResourceWithServiceDiscovery)endpointRef.
Resource
;
BlazorHostedExtensions.cs (1)
270
.Select(a => a.
Resource
.Name)
Aspire.Hosting.Blazor.Tests (7)
AddBlazorGatewayTests.cs (1)
527
annotation => annotation.
Resource
.Name == "weatherapi");
BlazorHostedExtensionsTests.cs (3)
396
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
447
.Count(a => a.
Resource
.Name == "weatherapi");
469
.Select(a => a.
Resource
.Name)
WithBlazorAppTests.cs (3)
400
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
429
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");
470
.SingleOrDefault(a => a.
Resource
.Name == "weatherapi");