8 references to StringComparisons
Aspire.Hosting (8)
ApplicationModel\ResourceNotificationService.cs (2)
119if (string.Equals(resourceName, resourceEvent.Resource.Name, StringComparisons.ResourceName) 316if (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)
438if (Resources.FirstOrDefault(r => string.Equals(r.Name, resource.Name, StringComparisons.ResourceName)) is { } existingResource)
ProjectResourceBuilderExtensions.cs (1)
500projectResource.Annotations.OfType<EndpointAnnotation>().FirstOrDefault(sb => sb.UriScheme == scheme || string.Equals(sb.Name, scheme, StringComparisons.EndpointAnnotationName));
ResourceBuilderExtensions.cs (1)
552if (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))