9 references to Subtract
Aspire.Dashboard (3)
Components\Controls\Chart\ChartBase.cs (3)
223start = start.Subtract(TimeSpan.FromSeconds(1)); 481return now.Subtract(pointDuration * pointIndex); 521return 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)
393return dateTimeOffset.Subtract(TimeSpan.FromTicks(ticksToRemove));
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\ResultsHelpers\FileResultHelper.cs (1)
393return dateTimeOffset.Subtract(TimeSpan.FromTicks(ticksToRemove));
Microsoft.AspNetCore.StaticFiles.Tests (2)
RangeHeaderTests.cs (2)
172req.Headers.Add("If-Range", original.Content.Headers.LastModified.Value.Subtract(TimeSpan.FromDays(1)).ToString("r")); 191req.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)
339DateTimeOffset nextCheckB = expiration.Subtract(MinRefreshBeforeExpirationInterval);