8 references to StringComparisons
Aspire.Hosting (8)
ApplicationModel\ResourceNotificationService.cs (2)
112if (string.Equals(resourceName, resourceEvent.Resource.Name, StringComparisons.ResourceName) 280if (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)
432if (Resources.FirstOrDefault(r => string.Equals(r.Name, resource.Name, StringComparisons.ResourceName)) is { } existingResource)
ProjectResourceBuilderExtensions.cs (1)
499projectResource.Annotations.OfType<EndpointAnnotation>().FirstOrDefault(sb => sb.UriScheme == scheme || string.Equals(sb.Name, scheme, StringComparisons.EndpointAnnotationName));
ResourceBuilderExtensions.cs (1)
530if (builder.Resource.Annotations.OfType<EndpointAnnotation>().Any(sb => string.Equals(sb.Name, annotation.Name, StringComparisons.EndpointAnnotationName)))
src\Shared\CustomResourceSnapshotExtensions.cs (1)
17if (string.Equals(property.Name, name, StringComparisons.ResourcePropertyName))