9 references to Subtract
Aspire.Dashboard (3)
Components\Controls\Chart\ChartBase.cs (3)
223
start = start.
Subtract
(TimeSpan.FromSeconds(1));
481
return now.
Subtract
(pointDuration * pointIndex);
521
return TimeProvider.GetUtcNow().
Subtract
(TimeSpan.FromSeconds(1)); // Compensate for delay in receiving metrics from services.
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteJSDataStream.cs (1)
214
_lastDataReceivedTime = _lastDataReceivedTime.
Subtract
(_jsInteropDefaultCallTimeout);
Microsoft.AspNetCore.Http.Results (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
393
return dateTimeOffset.
Subtract
(TimeSpan.FromTicks(ticksToRemove));
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
393
return dateTimeOffset.
Subtract
(TimeSpan.FromTicks(ticksToRemove));
Microsoft.AspNetCore.StaticFiles.Tests (2)
RangeHeaderTests.cs (2)
172
req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.
Subtract
(TimeSpan.FromDays(1)).ToString("r"));
191
req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.
Subtract
(TimeSpan.FromDays(1)).ToString("r"));
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
339
DateTimeOffset nextCheckB = expiration.
Subtract
(MinRefreshBeforeExpirationInterval);