19 references to CliProcessStarted
aspire (5)
Processes\OrphanDetectionEnvironment.cs (3)
20/// <see cref="KnownConfigNames.CliProcessStarted"/>). 32string startedKey = KnownConfigNames.CliProcessStarted, 78var isCliParentIdentity = pidKey == KnownConfigNames.CliProcessId && startedKey == KnownConfigNames.CliProcessStarted;
Projects\DotNetBasedAppHostServerProject.cs (1)
630OrphanDetectionEnvironment.Apply(startInfo.Environment, hostPid, hostStartedUnix, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted);
Projects\PrebuiltAppHostServer.cs (1)
1455OrphanDetectionEnvironment.Apply(startInfo.Environment, hostPid, hostStartedUnix, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted);
Aspire.Cli.Tests (14)
Processes\OrphanDetectionEnvironmentTests.cs (14)
20Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted])); 51Assert.False(environment.ContainsKey(KnownConfigNames.CliProcessStarted)); 65Assert.NotNull(ProcessStartTimeHelper.TryParseStartTimeUnixSeconds(environment[KnownConfigNames.CliProcessStarted])); 98OrphanDetectionEnvironment.Apply(environment, pid: 4321, stableStartTimeUnixMilliseconds: null, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted); 101Assert.False(environment.ContainsKey(KnownConfigNames.CliProcessStarted)); 111[KnownConfigNames.CliProcessStarted] = "111", 115OrphanDetectionEnvironment.Apply(environment, pid: 4321, stableStartTimeUnixMilliseconds: null, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted, overwrite: true); 118Assert.False(environment.ContainsKey(KnownConfigNames.CliProcessStarted)); 128[KnownConfigNames.CliProcessStarted] = "111", 132OrphanDetectionEnvironment.Apply(environment, pid: int.MaxValue, stableStartTimeUnixMilliseconds: 1000, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted, overwrite: true); 135Assert.False(environment.ContainsKey(KnownConfigNames.CliProcessStarted)); 145[KnownConfigNames.CliProcessStarted] = "111", 148OrphanDetectionEnvironment.Apply(environment, pid: 4321, stableStartTimeUnixMilliseconds: 1000, KnownConfigNames.CliProcessId, KnownConfigNames.CliProcessStarted, overwrite: false); 151Assert.Equal("111", environment[KnownConfigNames.CliProcessStarted]);