230 references to KnownProperties
Aspire.Hosting (100)
ApplicationModel\CustomResourceKnownProperties.cs (3)
16public static string Source { get; } = KnownProperties.Resource.Source; 21public static string ConnectionString { get; } = KnownProperties.Resource.ConnectionString; 26public static string ConnectionProperties { get; } = KnownProperties.Resource.ConnectionProperties;
ApplicationModel\DotnetToolResource.cs (3)
51yield return CreateHighlightedProperty(KnownProperties.Tool.Package, toolConfig.PackageId, ResourcePropertyToolPackageDisplayName, sortOrder: 0); 52yield return CreateHighlightedProperty(KnownProperties.Tool.Version, toolConfig.Version, ResourcePropertyToolVersionDisplayName, sortOrder: 1); 53yield return new(KnownProperties.Resource.Source, toolConfig.PackageId);
ApplicationModel\ParameterResource.cs (1)
522return new(KnownProperties.Parameter.Value, value)
ApplicationModel\ResourceNotificationService.cs (5)
665Properties = s.Properties.SetResourceProperty(KnownProperties.Resource.WaitingFor, waitingFor) 680Properties = s.Properties.RemoveResourceProperty(KnownProperties.Resource.WaitingFor) 904Properties = newState.Properties.RemoveResourceProperty(KnownProperties.Resource.WaitingFor) 929Properties = newState.Properties.SetResourceProperty(KnownProperties.Resource.ExcludeFromMcp, true) 1428if (string.Equals(property.Name, KnownProperties.Resource.WaitingFor, StringComparisons.ResourcePropertyName))
ApplicationModel\ResourceTraitSnapshotProperties.cs (4)
24var result = properties.Where(p => !p.Name.StartsWith(KnownProperties.Resource.TraitPrefix, StringComparison.Ordinal) && 25p.Name != KnownProperties.Resource.DisplayOrder).ToImmutableArray(); 29result = result.Add(new ResourcePropertySnapshot(KnownProperties.Resource.TraitPrefix + group.Key, values) 37result = result.Add(new ResourcePropertySnapshot(KnownProperties.Resource.DisplayOrder, displayOrder!.Order.ToString(CultureInfo.InvariantCulture)));
ApplicationModel\TerminalResourceSnapshotProperties.cs (5)
57.Add(new ResourcePropertySnapshot(KnownProperties.Terminal.Enabled, "true") { IsSensitive = false }) 58.Add(new ResourcePropertySnapshot(KnownProperties.Terminal.AutoFit, terminalAnnotation.Options.HasExplicitDimensions ? "false" : "true") { IsSensitive = false }) 59.Add(new ResourcePropertySnapshot(KnownProperties.Terminal.ReplicaIndex, replicaIndex.ToString(CultureInfo.InvariantCulture)) { IsSensitive = false }) 60.Add(new ResourcePropertySnapshot(KnownProperties.Terminal.ReplicaCount, replicaCount.ToString(CultureInfo.InvariantCulture)) { IsSensitive = false }); 69new ResourcePropertySnapshot(KnownProperties.Terminal.ConsumerUdsPath, consumerUdsPath) { IsSensitive = true });
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1188if (string.Equals(prop.Name, KnownProperties.Resource.WaitingFor, StringComparisons.ResourcePropertyName))
Dashboard\ResourcePropertySnapshotMetadata.cs (13)
40(KnownResourceTypes.Container, KnownProperties.Container.Image) => (ResourcePropertyContainerImageDisplayName, true, 0), 41(KnownResourceTypes.Container, KnownProperties.Container.Id) => (ResourcePropertyContainerIdDisplayName, true, 1), 42(KnownResourceTypes.Container, KnownProperties.Container.Command) => (ResourcePropertyContainerCommandDisplayName, true, 2), 43(KnownResourceTypes.Container, KnownProperties.Container.Args) => (ResourcePropertyContainerArgumentsDisplayName, true, 3), 44(KnownResourceTypes.Container, KnownProperties.Container.Ports) => (ResourcePropertyContainerPortsDisplayName, true, 4), 45(KnownResourceTypes.Container, KnownProperties.Container.Lifetime) => (ResourcePropertyContainerLifetimeDisplayName, true, 5), 46(KnownResourceTypes.Executable, KnownProperties.Executable.Path) => (ResourcePropertyExecutablePathDisplayName, true, 0), 47(KnownResourceTypes.Executable, KnownProperties.Executable.WorkDir) => (ResourcePropertyExecutableWorkingDirectoryDisplayName, true, 1), 48(KnownResourceTypes.Executable, KnownProperties.Executable.Args) => (ResourcePropertyExecutableArgumentsDisplayName, true, 2), 49(KnownResourceTypes.Executable, KnownProperties.Executable.Pid) => (ResourcePropertyExecutableProcessIdDisplayName, true, 3), 50(KnownResourceTypes.Project, KnownProperties.Project.Path) => (ResourcePropertyProjectPathDisplayName, true, 0), 51(KnownResourceTypes.Project, KnownProperties.Project.LaunchProfile) => (ResourcePropertyProjectLaunchProfileDisplayName, true, 1), 52(KnownResourceTypes.Project, KnownProperties.Executable.Pid) => (ResourcePropertyExecutableProcessIdDisplayName, true, 2),
Dashboard\ResourceSnapshot.cs (11)
43yield return (KnownProperties.Resource.Uid, Value.ForString(Uid), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 44yield return (KnownProperties.Resource.Name, Value.ForString(Name), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 45yield return (KnownProperties.Resource.Type, Value.ForString(ResourceType), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 48yield return (KnownProperties.Resource.ResourceTypeDisplayName, Value.ForString(ResourceTypeDisplayName), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 50yield return (KnownProperties.Resource.DisplayName, Value.ForString(DisplayName), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 51yield return (KnownProperties.Resource.State, State is null ? Value.ForNull() : Value.ForString(State), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 52yield return (KnownProperties.Resource.ExitCode, ExitCode is null ? Value.ForNull() : Value.ForString(ExitCode.Value.ToString("D", CultureInfo.InvariantCulture)), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 53yield return (KnownProperties.Resource.CreateTime, CreationTimeStamp is null ? Value.ForNull() : Value.ForString(CreationTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 54yield return (KnownProperties.Resource.StartTime, StartTimeStamp is null ? Value.ForNull() : Value.ForString(StartTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 55yield return (KnownProperties.Resource.StopTime, StopTimeStamp is null ? Value.ForNull() : Value.ForString(StopTimeStamp.Value.ToString("O")), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null); 56yield return (KnownProperties.Resource.HealthState, CustomResourceSnapshot.ComputeHealthStatus(HealthReports, State) is not { } healthStatus ? Value.ForNull() : Value.ForString(healthStatus.ToString()), IsSensitive: false, DisplayName: null, IsHighlighted: false, SortOrder: null);
Dcp\ResourceSnapshotBuilder.cs (50)
57ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Image, container.Spec.Image), 58ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Id, containerId), 59ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Command, container.Spec.Command), 60ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Args, effectiveArgs ?? [], isSensitive: true), 61ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Ports, GetPorts()), 62ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Container, KnownProperties.Container.Lifetime, GetContainerLifetime()), 63new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 64new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 121ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 122ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.Args, effectiveArgs ?? [], isSensitive: true), 123new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 124new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 179properties = properties.SetResourceProperty(KnownProperties.Resource.SourcePath, sourceResource.WorkingDirectory); 184? properties.SetResourceProperty(KnownProperties.Resource.LaunchConfigurationType, launchConfigurationType) 185: properties.RemoveResourceProperty(KnownProperties.Resource.LaunchConfigurationType); 187.RemoveResourceProperty(KnownProperties.Project.LaunchCommand) 188.RemoveResourceProperty(KnownProperties.Project.Configuration) 189.RemoveResourceProperty(KnownProperties.Project.TargetFramework) 190.RemoveResourceProperty(KnownProperties.Project.TargetPath) 191.RemoveResourceProperty(KnownProperties.Project.UseAppHost); 202ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 203ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 204ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Executable.Args, effectiveArgs ?? [], isSensitive: true), 205ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Executable.Pid, executable.Status?.ProcessId), 206ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Project.Path, projectPath), 207ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Project, KnownProperties.Project.LaunchProfile, launchProfileName), 208new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 209new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 227ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.Path, executable.Spec.ExecutablePath), 228ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.WorkDir, executable.Spec.WorkingDirectory), 229ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.Args, effectiveArgs ?? [], isSensitive: true), 230ResourcePropertySnapshotMetadata.Create(KnownResourceTypes.Executable, KnownProperties.Executable.Pid, executable.Status?.ProcessId), 231new(KnownProperties.Resource.AppArgs, launchArguments?.Args) { IsSensitive = launchArguments?.IsSensitive ?? false }, 232new(KnownProperties.Resource.AppArgsSensitivity, launchArguments?.ArgsAreSensitive) { IsSensitive = launchArguments?.IsSensitive ?? false }, 282directProperties.Add(new(KnownProperties.Project.LaunchCommand, "direct")); 285directProperties.Add(new(KnownProperties.Project.Configuration, directBuildConfiguration)); 289directProperties.Add(new(KnownProperties.Project.TargetPath, buildTarget.TargetPath)); 290directProperties.Add(new(KnownProperties.Project.UseAppHost, buildTarget.UseAppHost)); 311? [new(KnownProperties.Project.LaunchCommand, "ide"), new(KnownProperties.Project.Configuration, buildConfiguration)] 312: [new(KnownProperties.Project.LaunchCommand, "ide")]; 318return [new(KnownProperties.Project.LaunchCommand, null)]; 325return [new(KnownProperties.Project.LaunchCommand, null)]; 352return [new(KnownProperties.Project.LaunchCommand, null)]; 362return [new(KnownProperties.Project.LaunchCommand, null)]; 382return [new(KnownProperties.Project.LaunchCommand, null)]; 392return [new(KnownProperties.Project.LaunchCommand, null)]; 399properties.Add(new(KnownProperties.Project.LaunchCommand, launchCommand)); 402properties.Add(new(KnownProperties.Project.Configuration, configuration)); 407properties.Add(new(KnownProperties.Project.TargetFramework, targetFramework));
Orchestrator\ApplicationOrchestrator.cs (3)
268var (displayName, isHighlighted, sortOrder) = ResourcePropertySnapshotMetadata.Get(KnownResourceTypes.Container, KnownProperties.Container.Image); 275KnownProperties.Container.Image, 790Properties = parent is null ? s.Properties : s.Properties.SetResourceProperty(KnownProperties.Resource.ParentName, parent.GetResolvedResourceNames()[0]),
Orchestrator\ParameterProcessor.cs (1)
996? s.Properties.RemoveResourceProperty(KnownProperties.Parameter.Value)
Aspire.Hosting.Blazor (2)
BlazorGatewayExtensions.cs (2)
202new(KnownProperties.Project.Path, projectPath) 227new(KnownProperties.Project.Path, resolvedPath)
Aspire.Hosting.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
48Assert.Equal(KnownProperties.Project.Path, property.Name);
Aspire.Hosting.Tests (127)
Dashboard\ResourcePublisherTests.cs (4)
32Assert.Equal("Container", Assert.Single(resource.Properties, p => p.Name == KnownProperties.Resource.Type).Value.StringValue); 33var serviceProperties = resource.Properties.Where(p => p.Name == KnownProperties.Resource.ResourceTypeDisplayName).Select(p => p.Value.StringValue); 43KnownProperties.Resource.ConnectionProperties, 50var property = Assert.Single(snapshot.Properties, p => p.Name == KnownProperties.Resource.ConnectionProperties);
Dcp\DcpExecutorTests.cs (4)
795Assert.Equal(["--port", "52731"], GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Resource.AppArgs).ToArray()); 796Assert.Equal(effectiveArgs, GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Executable.Args).ToArray()); 841Assert.Equal(["--port", "5678"], GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Resource.AppArgs).ToArray()); 842Assert.Equal(effectiveArgs, GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Container.Args).ToArray());
Dcp\ResourceSnapshotBuilderTests.cs (79)
35AssertHighlightedProperty(snapshot, KnownProperties.Container.Image, "Container image", isSensitive: false, sortOrder: 0); 36AssertHighlightedProperty(snapshot, KnownProperties.Container.Id, "Container ID", isSensitive: false, sortOrder: 1); 37AssertHighlightedProperty(snapshot, KnownProperties.Container.Command, "Container command", isSensitive: false, sortOrder: 2); 38AssertHighlightedProperty(snapshot, KnownProperties.Container.Args, "Container arguments", isSensitive: true, sortOrder: 3); 39AssertHighlightedProperty(snapshot, KnownProperties.Container.Ports, "Container ports", isSensitive: false, sortOrder: 4); 40AssertHighlightedProperty(snapshot, KnownProperties.Container.Lifetime, "Container lifetime", isSensitive: false, sortOrder: 5); 55AssertHighlightedProperty(snapshot, KnownProperties.Executable.Path, "Executable path", isSensitive: false, sortOrder: 0); 56AssertHighlightedProperty(snapshot, KnownProperties.Executable.WorkDir, "Working directory", isSensitive: false, sortOrder: 1); 57AssertHighlightedProperty(snapshot, KnownProperties.Executable.Args, "Executable arguments", isSensitive: true, sortOrder: 2); 58AssertHighlightedProperty(snapshot, KnownProperties.Executable.Pid, "Process ID", isSensitive: false, sortOrder: 3); 82AssertDefaultProperty(snapshot, KnownProperties.Executable.Path, isSensitive: false); 83AssertDefaultProperty(snapshot, KnownProperties.Executable.WorkDir, isSensitive: false); 84AssertDefaultProperty(snapshot, KnownProperties.Executable.Args, isSensitive: true); 85AssertHighlightedProperty(snapshot, KnownProperties.Project.Path, "Project path", isSensitive: false, sortOrder: 0); 86AssertHighlightedProperty(snapshot, KnownProperties.Project.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1); 87AssertHighlightedProperty(snapshot, KnownProperties.Executable.Pid, "Process ID", isSensitive: false, sortOrder: 2); 111var launchConfigurationType = Assert.Single(snapshot.Properties, p => p.Name == KnownProperties.Resource.LaunchConfigurationType); 150Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 153Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 157Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 159Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 160Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 202Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 203Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 204Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.Project.TargetPath 205or KnownProperties.Project.UseAppHost)); 248Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.Project.Path).Value); 249Assert.Equal(executablePath, GetProperty(snapshot, KnownProperties.Executable.Path).Value); 250Assert.Equal(1234, GetProperty(snapshot, KnownProperties.Executable.Pid).Value); 251Assert.Equal("direct", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 254snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration).Select(property => property.Value)); 255Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.Project.TargetPath).Value); 256Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.Project.UseAppHost).Value); 257Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 258Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 293Assert.Empty(snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 294or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework 295or KnownProperties.Project.TargetPath or KnownProperties.Project.UseAppHost)); 355Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value)); 356Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.Configuration).Value)); 357Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value)); 358Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 359Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 360Assert.False(GetProperty(snapshot, KnownProperties.Project.Configuration).IsSensitive); 361Assert.False(GetProperty(snapshot, KnownProperties.Project.TargetFramework).IsSensitive); 393new(KnownProperties.Project.Configuration, "stale-configuration"), 394new(KnownProperties.Project.TargetFramework, "stale-framework"), 402Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 403Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 404Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.TargetFramework)); 438Properties = [new(KnownProperties.Project.Configuration, "stale-configuration")] 445Assert.Empty(snapshot.Properties.Where(property => property.Name == KnownProperties.Project.Configuration)); 446Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 478snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 479or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework), 482Assert.Equal(KnownProperties.Project.LaunchCommand, property.Name); 507snapshot.Properties.Where(property => property.Name is KnownProperties.Project.LaunchCommand 508or KnownProperties.Project.Configuration or KnownProperties.Project.TargetFramework), 511Assert.Equal(KnownProperties.Project.LaunchCommand, property.Name); 514Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 540Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 541Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 542Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value); 563var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 587var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 612Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 618Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 627Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 680AssertHighlightedProperty(projectSnapshot, KnownProperties.Project.Path, "Project path", isSensitive: false, sortOrder: 0); 681AssertHighlightedProperty(projectSnapshot, KnownProperties.Project.LaunchProfile, "Launch profile", isSensitive: false, sortOrder: 1); 699Assert.Equal(["--secret", "resolved-secret"], GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Resource.AppArgs).ToArray()); 700Assert.Equal([0, 1], GetEnumerablePropertyValue<int>(snapshot, KnownProperties.Resource.AppArgsSensitivity).ToArray()); 701Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgs).IsSensitive); 702Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgsSensitivity).IsSensitive); 717Assert.Equal(["-port", DcpTemplateArgument], GetEnumerablePropertyValue<string>(snapshot, KnownProperties.Resource.AppArgs).ToArray());
DistributedApplicationTests.cs (5)
422var servicePid = Assert.IsType<int>(GetResourcePropertyValue(normalResource, KnownProperties.Executable.Pid)); 2246GetResourcePropertyValue(e, KnownProperties.Container.Id) is string, 2251GetResourcePropertyValue(e, KnownProperties.Executable.Pid) is int, 2254var containerId = Assert.IsType<string>(GetResourcePropertyValue(containerEvent, KnownProperties.Container.Id)); 2255var executablePid = Assert.IsType<int>(GetResourcePropertyValue(executableEvent, KnownProperties.Executable.Pid));
DotnetToolResourceTests.cs (3)
25AssertToolProperty(properties[KnownProperties.Tool.Package], "dotnet-dump", MessageStrings.ResourcePropertyToolPackageDisplayName, expectedSortOrder: 0); 26AssertToolProperty(properties[KnownProperties.Tool.Version], "1.2.3", MessageStrings.ResourcePropertyToolVersionDisplayName, expectedSortOrder: 1); 28var sourceProperty = properties[KnownProperties.Resource.Source];
Orchestrator\ApplicationOrchestratorTests.cs (15)
607childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 655childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 756childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 760nestedChildParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 764child2ParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 825childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 873projectBParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 1026Assert.Equal(KnownProperties.Resource.ConnectionString, connectionStringProperty.Name); 1032Assert.Equal(KnownProperties.Resource.ConnectionProperties, connectionPropertiesProperty.Name); 1603var waitingFor = waitingEvent.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.WaitingFor)?.Value; 1966childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 1970child2ParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 2023childParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 2027child2ParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString(); 2077childProjectParentResourceId = item.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.ParentName)?.Value?.ToString();
Orchestrator\ParameterProcessorTests.cs (5)
145Assert.DoesNotContain(updates.Current.Snapshot.Properties, property => property.Name == KnownProperties.Parameter.Value); 1952var property = Assert.Single(snapshot.Properties, p => p.Name == KnownProperties.Parameter.Value); 2497Assert.DoesNotContain(updates.Current.Snapshot.Properties, property => property.Name == KnownProperties.Parameter.Value); 2526Assert.DoesNotContain(updates.Current.Snapshot.Properties, property => property.Name == KnownProperties.Parameter.Value); 2673var valueProperty = Assert.Single(updates.Current.Snapshot.Properties, property => property.Name == KnownProperties.Parameter.Value);
ResourceNotificationTests.cs (9)
557Assert.DoesNotContain(completedWaitingEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 671Assert.DoesNotContain(completedWaitingEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 719Assert.DoesNotContain(completedWaitingEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 993Assert.DoesNotContain(completedWaitingEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 1005Properties = [new ResourcePropertySnapshot(KnownProperties.Resource.WaitingFor, new[] { "dependency" })] 1009Assert.Contains(waitingEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 1017Assert.DoesNotContain(runningEvent.Snapshot.Properties, p => p.Name == KnownProperties.Resource.WaitingFor); 1035Properties = [new ResourcePropertySnapshot(KnownProperties.Resource.WaitingFor, new[] { dependency.Name })] 2079var property = resourceEvent.Snapshot.Properties.SingleOrDefault(p => p.Name == KnownProperties.Resource.WaitingFor);
ResourceTraitBuilderTests.cs (1)
81Assert.Equal(["resource.trait.Aspire_Tag", KnownProperties.Resource.DisplayOrder], properties.Select(p => p.Name));
WithTerminalTests.cs (2)
110var autoFit = Assert.Single(properties, p => p.Name == KnownProperties.Terminal.AutoFit); 138var autoFit = Assert.Single(properties, p => p.Name == KnownProperties.Terminal.AutoFit);