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)
13
public HashSet<string> EndpointNames { get; } = new(
StringComparers
.EndpointAnnotationName);
ApplicationModel\ResourceNotificationService.cs (1)
114
&& targetStates.Contains(statusText,
StringComparers
.ResourceState))
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
39
if (beforeStartEvent.Model.Resources.SingleOrDefault(r =>
StringComparers
.ResourceName.Equals(r.Name, KnownResourceNames.AspireDashboard)) is { } dashboardResource)
Dashboard\DashboardLifecycleHook.cs (3)
48
if (appModel.Resources.SingleOrDefault(r =>
StringComparers
.ResourceName.Equals(r.Name, KnownResourceNames.AspireDashboard)) is { } dashboardResource)
278
var corsOrigins = new HashSet<string>(
StringComparers
.UrlHost);
321
if (
StringComparers
.ResourceName.Equals(notification.Resource.Name, KnownResourceNames.AspireDashboard) && !dashboardResourceTasks.ContainsKey(notification.ResourceId))
DistributedApplicationBuilder.cs (1)
407
foreach (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"/>.