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