8 references to StringComparisons
Aspire.Hosting (8)
ApplicationModel\ResourceNotificationService.cs (2)
119
if (string.Equals(resourceName, resourceEvent.Resource.Name,
StringComparisons
.ResourceName)
316
if (string.Equals(resourceName, resourceEvent.Resource.Name,
StringComparisons
.ResourceName)
Dashboard\DashboardLifecycleHook.cs (1)
277
.Where(r => !string.Equals(r.Name, KnownResourceNames.AspireDashboard,
StringComparisons
.ResourceName))
Dcp\DcpExecutor.cs (1)
1603
.SingleOrDefault(r => string.Equals(r.DcpResource.Metadata.Name, resourceName,
StringComparisons
.ResourceName));
DistributedApplicationBuilder.cs (1)
438
if (Resources.FirstOrDefault(r => string.Equals(r.Name, resource.Name,
StringComparisons
.ResourceName)) is { } existingResource)
ProjectResourceBuilderExtensions.cs (1)
500
projectResource.Annotations.OfType<EndpointAnnotation>().FirstOrDefault(sb => sb.UriScheme == scheme || string.Equals(sb.Name, scheme,
StringComparisons
.EndpointAnnotationName));
ResourceBuilderExtensions.cs (1)
552
if (builder.Resource.Annotations.OfType<EndpointAnnotation>().Any(sb => string.Equals(sb.Name, annotation.Name,
StringComparisons
.EndpointAnnotationName)))
src\Shared\CustomResourceSnapshotExtensions.cs (1)
17
if (string.Equals(property.Name, name,
StringComparisons
.ResourcePropertyName))