4 writes to MonitorTimestamp
Aspire.Hosting (2)
Dcp\ExecutableCreator.cs (2)
361
spec.
MonitorTimestamp
= null;
372
spec.
MonitorTimestamp
= parentProcessTimestamp;
Aspire.Hosting.Tests (2)
Dcp\DcpExecutorTests.cs (2)
11294
AssertMonitorTimestamp(new ExecutableSpec { MonitorPid = 1234,
MonitorTimestamp
= wholeSecondTimestamp }, "0001-01-01T00:06:30.000000Z");
11295
AssertMonitorTimestamp(new ExecutableSpec { MonitorPid = 1234,
MonitorTimestamp
= fractionalSecondTimestamp }, "0001-01-01T00:06:30.123000Z");
7 references to MonitorTimestamp
Aspire.Hosting (1)
Dcp\Model\Executable.cs (1)
72
/// When set, <see cref="
MonitorTimestamp
"/> must also be set and <see cref="Persistent"/> must be true.
Aspire.Hosting.Tests (6)
Dcp\DcpExecutorTests.cs (4)
5851
Assert.Null(exe.Spec.
MonitorTimestamp
);
6005
Assert.NotNull(exe.Spec.
MonitorTimestamp
);
6006
Assert.Equal(parentProcessIdentity.Timestamp, exe.Spec.
MonitorTimestamp
.Value, TimeSpan.FromMicroseconds(1));
11321
Assert.Equal(expectedTimestamp, executableSpec.
MonitorTimestamp
);
DistributedApplicationTests.cs (2)
2077
Assert.NotNull(dcpExecutable.Spec.
MonitorTimestamp
);
2078
Assert.InRange((dcpExecutable.Spec.
MonitorTimestamp
.Value - parentProcessIdentity.Timestamp).Duration(), TimeSpan.Zero, TimeSpan.FromMilliseconds(1));