23 references to ToUnixTimeSeconds
aspire (1)
DotNet\DotNetCliRunner.cs (1)
57
return ((DateTimeOffset)startTime).
ToUnixTimeSeconds
();
Aspire.Cli.Tests (3)
Hosting\CliOrphanDetectorTests.cs (3)
55
var expectedStartTimeUnixSeconds = ((DateTimeOffset)expectedStartTime).
ToUnixTimeSeconds
();
99
var expectedStartTimeUnix = ((DateTimeOffset)expectedStartTime).
ToUnixTimeSeconds
();
143
var expectedStartTimeUnixString = ((DateTimeOffset)expectedStartTime).
ToUnixTimeSeconds
().ToString();
Aspire.Hosting (1)
Cli\CliOrphanDetector.cs (1)
36
var actualStartTimeUnix = ((DateTimeOffset)process.StartTime).
ToUnixTimeSeconds
();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
180
deploymentName = $"{resource.Name}-{DateTimeOffset.Now.
ToUnixTimeSeconds
()}";
Aspire.Hosting.Azure.Tests (8)
DefaultUserPrincipalProviderTests.cs (6)
104
exp = DateTimeOffset.UtcNow.AddHours(1).
ToUnixTimeSeconds
(),
105
iat = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
()
127
exp = DateTimeOffset.UtcNow.AddHours(1).
ToUnixTimeSeconds
(),
128
iat = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
()
197
exp = DateTimeOffset.UtcNow.AddHours(1).
ToUnixTimeSeconds
(),
198
iat = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
()
ProvisioningTestHelpers.cs (2)
157
exp = DateTimeOffset.UtcNow.AddHours(1).
ToUnixTimeSeconds
(),
158
iat = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
()
Microsoft.AspNetCore.Identity.FunctionalTests (6)
MapIdentityApiTests.cs (5)
698
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
739
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
791
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
838
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
907
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
Pages\Account\Manage\EnableAuthenticator.cs (1)
49
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
Microsoft.Extensions.Identity.Core (1)
AuthenticatorTokenProvider.cs (1)
60
var unixTimestamp = DateTimeOffset.UtcNow.
ToUnixTimeSeconds
();
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.Write.cs (1)
1177
long unixTimeSeconds = timestamp.
ToUnixTimeSeconds
();
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\FileStatus.Unix.cs (1)
394
long seconds = time.
ToUnixTimeSeconds
();