33 references to OtlpApplicationType
Aspire.Dashboard (10)
Components\Pages\ConsoleLogs.razor.cs (1)
190PageViewModel.SelectedOption = _resources.Single(option => option.Id?.Type is not OtlpApplicationType.ResourceGrouping && string.Equals(ResourceName, option.Id?.InstanceId, StringComparison.Ordinal));
Model\Otlp\ApplicationsSelectHelpers.cs (4)
84private static bool SupportType(OtlpApplicationType? type, bool canSelectGrouping) 86if (type is OtlpApplicationType.Instance or OtlpApplicationType.Singleton) 91if (canSelectGrouping && type is OtlpApplicationType.ResourceGrouping)
Model\ResourceTypeDetails.cs (5)
13private ResourceTypeDetails(OtlpApplicationType type, string? instanceId, string? replicaSetName) 20public OtlpApplicationType Type { get; } 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);
Aspire.Dashboard.Tests (23)
ConsoleLogsTests\CreateResourceSelectModelsTests.cs (6)
53Assert.Equal(OtlpApplicationType.ResourceGrouping, entry.Id.Type); 62Assert.Equal(OtlpApplicationType.Instance, entry.Id.Type); 71Assert.Equal(OtlpApplicationType.Instance, entry.Id.Type); 80Assert.Equal(OtlpApplicationType.Singleton, entry.Id.Type); 88Assert.Equal(OtlpApplicationType.Singleton, entry.Id.Type); 96Assert.Equal(OtlpApplicationType.Singleton, entry.Id.Type);
Model\ApplicationsSelectHelpersTests.cs (17)
34Assert.Equal(OtlpApplicationType.ResourceGrouping, app.Id!.Type); 40Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 46Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 52Assert.Equal(OtlpApplicationType.Singleton, app.Id!.Type); 61Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 78Assert.Equal(OtlpApplicationType.ResourceGrouping, app.Id!.Type); 84Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 90Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 102Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 126Assert.Equal(OtlpApplicationType.Singleton, app.Id!.Type); 144Assert.Equal(OtlpApplicationType.ResourceGrouping, app.Id!.Type); 150Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 156Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 181Assert.Equal(OtlpApplicationType.ResourceGrouping, app.Id!.Type); 187Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 193Assert.Equal(OtlpApplicationType.Instance, app.Id!.Type); 202Assert.Equal(OtlpApplicationType.ResourceGrouping, app.Id!.Type);