20 references to StringComparers
Aspire.Dashboard (20)
Components\Dialogs\FilterDialog.razor.cs (1)
96
.ThenBy(v => v.Value,
StringComparers
.OtlpFieldValue)
Components\Resize\GridColumnManager.razor.cs (1)
30
_columnById = Columns.ToDictionary(c => c.Name,
StringComparers
.GridColumn);
Extensions\FluentUIExtensions.cs (2)
15
var attributes = new Dictionary<string, object>(
StringComparers
.HtmlAttribute)
33
var attributes = new Dictionary<string, object>(
StringComparers
.HtmlAttribute)
Model\Otlp\ApplicationsSelectHelpers.cs (1)
80
var sortedVMs = selectViewModels.OrderBy(vm => vm.Name,
StringComparers
.ResourceName).ToList();
Model\ResourceEndpointHelpers.cs (1)
41
.ThenBy(e => e.Name,
StringComparers
.EndpointAnnotationName)
Model\ResourceOutgoingPeerResolver.cs (1)
14
private readonly ConcurrentDictionary<string, ResourceViewModel> _resourceByName = new(
StringComparers
.ResourceName);
Model\ResourceViewModelExtensions.cs (4)
14
return
StringComparers
.ResourceType.Equals(resource.ResourceType, KnownResourceTypes.Container);
19
return
StringComparers
.ResourceType.Equals(resource.ResourceType, KnownResourceTypes.Project);
24
if (
StringComparers
.ResourceType.Equals(resource.ResourceType, KnownResourceTypes.Executable))
31
return
StringComparers
.ResourceType.Equals(resource.ResourceType, KnownResourceTypes.Project);
Otlp\Model\OtlpApplication.cs (3)
148
.GroupBy(application => application.ApplicationName,
StringComparers
.ResourceName)
244
hashCode.Add(
StringComparers
.OtlpAttribute.GetHashCode(obj[i].Key));
245
hashCode.Add(
StringComparers
.OtlpAttribute.GetHashCode(obj[i].Value));
Otlp\Model\OtlpSpanCollection.cs (1)
13
public OtlpSpanCollection() : base(
StringComparers
.OtlpSpanId, DictionaryCreationThreshold)
Otlp\Storage\TelemetryRepository.cs (2)
573
var attributesValues = new Dictionary<string, int>(
StringComparers
.OtlpAttribute);
603
var attributesValues = new Dictionary<string, int>(
StringComparers
.OtlpAttribute);
ResourceService\DashboardClient.cs (1)
42
private readonly Dictionary<string, ResourceViewModel> _resourceByName = new(
StringComparers
.ResourceName);
ResourceService\Partials.cs (1)
30
keyComparer:
StringComparers
.ResourcePropertyName,
src\Shared\Model\KnownProperties.cs (1)
11
/// Should be compared using <see cref="
StringComparers
.ResourcePropertyName"/>.