23 references to StringComparisons
Aspire.Dashboard (23)
DashboardWebApplication.cs (1)
347if (context.Request.Path.Equals(TargetLocationInterceptor.ResourcesPath, StringComparisons.UrlPath))
Model\BrowserLinkOutgoingPeerResolver.cs (3)
41if (url != null && url.EndsWith(lastSegment, StringComparisons.UrlPath)) 43if (Uri.TryCreate(url, UriKind.Absolute, out var uri) && string.Equals(uri.Host, "localhost", StringComparisons.UrlHost)) 48if (Guid.TryParse(parts[0], out _) && string.Equals(parts[1], lastSegment, StringComparisons.UrlPath))
Model\Otlp\ApplicationsSelectHelpers.cs (1)
17var matches = applications.Where(e => SupportType(e.Id?.Type, canSelectGrouping) && string.Equals(name, e.Name, StringComparisons.ResourceName)).ToList();
Model\Otlp\TelemetryFilter.cs (4)
60FilterCondition.Equals => (a, b) => string.Equals(a, b, StringComparisons.OtlpFieldValue), 61FilterCondition.Contains => (a, b) => a != null && a.Contains(b, StringComparisons.OtlpFieldValue), 66FilterCondition.NotEqual => (a, b) => !string.Equals(a, b, StringComparisons.OtlpFieldValue), 67FilterCondition.NotContains => (a, b) => a != null && !a.Contains(b, StringComparisons.OtlpFieldValue),
Model\ResourceViewModel.cs (2)
66return Name.Contains(filter, StringComparisons.UserTextSearch); 108if (string.Equals(item.DisplayName, resource.DisplayName, StringComparisons.ResourceName))
Model\TargetLocationInterceptor.cs (1)
36if (string.Equals(path, ResourcesPath, StringComparisons.UrlPath))
Model\ValidateTokenMiddleware.cs (1)
29if (context.Request.Path.Equals("/login", StringComparisons.UrlPath))
Otlp\Model\OtlpApplication.cs (3)
160if (string.Equals(item.ApplicationName, app.ApplicationName, StringComparisons.ResourceName)) 226if (!string.Equals(x[i].Key, y[i].Key, StringComparisons.OtlpAttribute)) 230if (!string.Equals(x[i].Value, y[i].Value, StringComparisons.OtlpAttribute))
Otlp\Model\OtlpApplicationView.cs (1)
37Array.Sort(properties, (p1, p2) => string.Compare(p1.Key, p2.Key, StringComparisons.OtlpAttribute));
Otlp\Storage\ApplicationKey.cs (5)
10var c = string.Compare(Name, other.Name, StringComparisons.ResourceName); 16return string.Compare(InstanceId, other.InstanceId, StringComparisons.ResourceName); 34if (!name.AsSpan(0, Name.Length).Equals(Name, StringComparisons.ResourceName)) 42if (!name.AsSpan(Name.Length + 1, InstanceId.Length).Equals(InstanceId, StringComparisons.ResourceName)) 51return string.Equals(Name, name, StringComparisons.ResourceName);
Otlp\Storage\TelemetryRepository.cs (1)
97results = results.Where(a => string.Equals(a.ApplicationKey.Name, name, StringComparisons.ResourceName));