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