8 references to StringComparisons
Aspire.Hosting (8)
ApplicationModel\ResourceNotificationService.cs (2)
112
if (string.Equals(resourceName, resourceEvent.Resource.Name,
StringComparisons
.ResourceName)
280
if (string.Equals(resourceName, resourceEvent.Resource.Name,
StringComparisons
.ResourceName)
Dashboard\DashboardLifecycleHook.cs (1)
273
.Where(r => !string.Equals(r.Name, KnownResourceNames.AspireDashboard,
StringComparisons
.ResourceName))
Dcp\ApplicationExecutor.cs (1)
2077
.SingleOrDefault(r => string.Equals(r.DcpResource.Metadata.Name, resourceName,
StringComparisons
.ResourceName));
DistributedApplicationBuilder.cs (1)
432
if (Resources.FirstOrDefault(r => string.Equals(r.Name, resource.Name,
StringComparisons
.ResourceName)) is { } existingResource)
ProjectResourceBuilderExtensions.cs (1)
499
projectResource.Annotations.OfType<EndpointAnnotation>().FirstOrDefault(sb => sb.UriScheme == scheme || string.Equals(sb.Name, scheme,
StringComparisons
.EndpointAnnotationName));
ResourceBuilderExtensions.cs (1)
530
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))