3 instantiations of ResourceTypeDetails
Aspire.Dashboard (3)
Model\ResourceTypeDetails.cs (3)
36return new ResourceTypeDetails(OtlpApplicationType.ResourceGrouping, instanceId: null, replicaSetName: isReplicaSet ? groupingName : null); 41return new ResourceTypeDetails(OtlpApplicationType.Singleton, instanceId, replicaSetName: replicaSetName); 46return new ResourceTypeDetails(OtlpApplicationType.Instance, instanceId, replicaSetName);
44 references to ResourceTypeDetails
Aspire.Dashboard (38)
Components\Controls\ResourceSelect.razor.cs (3)
19public IEnumerable<SelectViewModel<ResourceTypeDetails>> Resources { get; set; } = default!; 22public SelectViewModel<ResourceTypeDetails> SelectedResource { get; set; } = default!; 25public EventCallback<SelectViewModel<ResourceTypeDetails>> SelectedResourceChanged { get; set; }
Components\Pages\ConsoleLogs.razor.cs (11)
82private ImmutableList<SelectViewModel<ResourceTypeDetails>>? _resources; 89private SelectViewModel<ResourceTypeDetails> _noSelection = null!; 324internal static ImmutableList<SelectViewModel<ResourceTypeDetails>> GetConsoleLogResourceSelectViewModels( 326SelectViewModel<ResourceTypeDetails> noSelectionViewModel, 329var builder = ImmutableList.CreateBuilder<SelectViewModel<ResourceTypeDetails>>(); 342builder.Add(new SelectViewModel<ResourceTypeDetails> 344Id = ResourceTypeDetails.CreateApplicationGrouping(applicationName, true), 362SelectViewModel<ResourceTypeDetails> ToOption(ResourceViewModel resource, bool isReplica, string applicationName) 365? ResourceTypeDetails.CreateReplicaInstance(resource.Name, applicationName) 366: ResourceTypeDetails.CreateSingleton(resource.Name, applicationName); 368return new SelectViewModel<ResourceTypeDetails>
Components\Pages\Metrics.razor.cs (3)
19private SelectViewModel<ResourceTypeDetails> _selectApplication = null!; 26private List<SelectViewModel<ResourceTypeDetails>> _applicationViewModels = default!; 82_selectApplication = new SelectViewModel<ResourceTypeDetails>
Components\Pages\StructuredLogs.razor.cs (2)
31private SelectViewModel<ResourceTypeDetails> _allApplication = default!; 36private List<SelectViewModel<ResourceTypeDetails>> _applicationViewModels = default!;
Components\Pages\Traces.razor.cs (3)
30private SelectViewModel<ResourceTypeDetails> _allApplication = null!; 35private List<SelectViewModel<ResourceTypeDetails>> _applicationViewModels = default!; 148_allApplication = new SelectViewModel<ResourceTypeDetails> { Id = null, Name = ControlsStringsLoc[name: nameof(ControlsStrings.LabelAll)] };
Model\Otlp\ApplicationsSelectHelpers.cs (11)
10public static SelectViewModel<ResourceTypeDetails> GetApplication(this List<SelectViewModel<ResourceTypeDetails>> applications, ILogger logger, string? name, bool canSelectGrouping, SelectViewModel<ResourceTypeDetails> fallback) 43public static List<SelectViewModel<ResourceTypeDetails>> CreateApplications(List<OtlpApplication> applications) 47var selectViewModels = new List<SelectViewModel<ResourceTypeDetails>>(); 55selectViewModels.Add(new SelectViewModel<ResourceTypeDetails> 57Id = ResourceTypeDetails.CreateSingleton(app.InstanceId, applicationName), 65selectViewModels.Add(new SelectViewModel<ResourceTypeDetails> 67Id = ResourceTypeDetails.CreateApplicationGrouping(applicationName, isReplicaSet: true), 73new SelectViewModel<ResourceTypeDetails> 75Id = ResourceTypeDetails.CreateReplicaInstance(replica.InstanceId, applicationName),
Model\ResourceTypeDetails.cs (5)
11public class ResourceTypeDetails : IEquatable<ResourceTypeDetails> 34public static ResourceTypeDetails CreateApplicationGrouping(string groupingName, bool isReplicaSet) 39public static ResourceTypeDetails CreateSingleton(string instanceId, string replicaSetName) 44public static ResourceTypeDetails CreateReplicaInstance(string instanceId, string replicaSetName) 54public bool Equals(ResourceTypeDetails? other)
Aspire.Dashboard.Tests (6)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (1)
39var noSelectionViewModel = new SelectViewModel<ResourceTypeDetails> { Id = null, Name = selectAResourceText };
Model\ApplicationsSelectHelpersTests.cs (5)
112var appVMs = new List<SelectViewModel<ResourceTypeDetails>> 114new SelectViewModel<ResourceTypeDetails>() { Name = "test", Id = ResourceTypeDetails.CreateSingleton("test-abc", "test") }, 115new SelectViewModel<ResourceTypeDetails>() { Name = "test", Id = ResourceTypeDetails.CreateSingleton("test-def", "test") }