13 references to StringComparers
Aspire.Hosting (12)
ApplicationModel\EndpointReference.cs (1)
109_endpointAnnotation ??= Resource.Annotations.OfType<EndpointAnnotation>().SingleOrDefault(a => StringComparers.EndpointAnnotationName.Equals(a.Name, EndpointName));
ApplicationModel\EndpointReferenceAnnotation.cs (1)
13public HashSet<string> EndpointNames { get; } = new(StringComparers.EndpointAnnotationName);
ApplicationModel\ResourceNotificationService.cs (1)
114&& targetStates.Contains(statusText, StringComparers.ResourceState))
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
39if (beforeStartEvent.Model.Resources.SingleOrDefault(r => StringComparers.ResourceName.Equals(r.Name, KnownResourceNames.AspireDashboard)) is { } dashboardResource)
Dashboard\DashboardLifecycleHook.cs (3)
48if (appModel.Resources.SingleOrDefault(r => StringComparers.ResourceName.Equals(r.Name, KnownResourceNames.AspireDashboard)) is { } dashboardResource) 278var corsOrigins = new HashSet<string>(StringComparers.UrlHost); 321if (StringComparers.ResourceName.Equals(notification.Resource.Name, KnownResourceNames.AspireDashboard) && !dashboardResourceTasks.ContainsKey(notification.ResourceId))
DistributedApplicationBuilder.cs (1)
407foreach (var duplicateResourceName in Resources.GroupBy(r => r.Name, StringComparers.ResourceName)
Health\ResourceHealthCheckService.cs (2)
110|| !StringComparers.HealthReportPropertyValue.Equals(checkReportSnapshot.Description, value.Description) 111|| !StringComparers.HealthReportPropertyValue.Equals(checkReportSnapshot.ExceptionText, value.Exception?.ToString()))
ResourceBuilderExtensions.cs (1)
479.Where(ea => StringComparers.EndpointAnnotationName.Equals(ea.Name, endpointName))
src\Shared\Model\KnownProperties.cs (1)
11/// Should be compared using <see cref="StringComparers.ResourcePropertyName"/>.
Stress.AppHost (1)
src\Shared\Model\KnownProperties.cs (1)
11/// Should be compared using <see cref="StringComparers.ResourcePropertyName"/>.