27 implementations of LastModified
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\TestFileProvider\TestDirectoryContent.cs (1)
26public DateTimeOffset LastModified => throw new NotSupportedException();
Builder\TestFileProvider\TestFileInfo.cs (1)
14public DateTimeOffset LastModified { get; set; }
Builder\TestFileProvider\TestFileProvider.cs (1)
142public DateTimeOffset LastModified
Microsoft.AspNetCore.Components.WebView (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
268public DateTimeOffset LastModified => _lastModified; 292public DateTimeOffset LastModified => _source.LastModified;
Microsoft.AspNetCore.Components.WebView.Maui (1)
iOS\iOSMauiAssetFileProvider.cs (1)
51 public DateTimeOffset LastModified { get; } = DateTimeOffset.FromUnixTimeSeconds(0);
Microsoft.AspNetCore.Components.WebView.Test (1)
StaticContentProviderTests.cs (1)
121public DateTimeOffset LastModified => DateTimeOffset.Now;
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionDetailsProviderTest.cs (1)
337public DateTimeOffset LastModified
Microsoft.AspNetCore.Hosting (2)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (2)
268public DateTimeOffset LastModified => _lastModified; 292public DateTimeOffset LastModified => _source.LastModified;
Microsoft.AspNetCore.Hosting.Tests (1)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (1)
785public DateTimeOffset LastModified { get; set; }
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestDirectoryContent.cs (1)
26public DateTimeOffset LastModified => throw new NotSupportedException();
TestDirectoryFileInfo.cs (1)
18public DateTimeOffset LastModified => throw new NotImplementedException();
TestFileInfo.cs (1)
14public DateTimeOffset LastModified { get; set; }
TestFileProvider.cs (1)
142public DateTimeOffset LastModified
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
CertificatePathWatcherTests.cs (1)
566DateTimeOffset IFileInfo.LastModified => _lastModifiedTime.GetValueOrDefault();
Microsoft.AspNetCore.StaticFiles.Tests (2)
StaticFileContextTest.cs (2)
195public DateTimeOffset LastModified 246public DateTimeOffset LastModified { get; set; }
Microsoft.Extensions.Configuration.KeyPerFile.Tests (1)
KeyPerFileTests.cs (1)
515public DateTimeOffset LastModified => throw new NotImplementedException();
Microsoft.Extensions.FileProviders.Abstractions (1)
NotFoundFileInfo.cs (1)
37public DateTimeOffset LastModified => DateTimeOffset.MinValue;
Microsoft.Extensions.FileProviders.Embedded (3)
EmbeddedResourceFileInfo.cs (1)
73public DateTimeOffset LastModified { get; }
Manifest\ManifestDirectoryInfo.cs (1)
38public DateTimeOffset LastModified { get; }
Manifest\ManifestFileInfo.cs (1)
37public DateTimeOffset LastModified { get; }
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestFileInfo.cs (1)
28public DateTimeOffset LastModified => throw new NotImplementedException();
Microsoft.Extensions.FileProviders.Physical (2)
PhysicalDirectoryInfo.cs (1)
54public DateTimeOffset LastModified => _info.LastWriteTimeUtc;
PhysicalFileInfo.cs (1)
38public DateTimeOffset LastModified => _info.LastWriteTimeUtc;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
93public DateTimeOffset LastModified => DateTimeOffset.MinValue;
16 references to LastModified
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
292public DateTimeOffset LastModified => _source.LastModified;
Microsoft.AspNetCore.Hosting (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
292public DateTimeOffset LastModified => _source.LastModified;
Microsoft.AspNetCore.Http.Results (1)
VirtualFileHttpResult.cs (1)
113LastModified = LastModified ?? fileInfo.LastModified;
Microsoft.AspNetCore.Http.Results.Tests (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
515fileInfo.SetupGet(fi => fi.LastModified).Returns(lastModified);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\VirtualFileResultExecutor.cs (1)
48var lastModified = result.LastModified ?? fileInfo.LastModified;
Microsoft.AspNetCore.Mvc.Core.Test (1)
src\Shared\ResultsTests\VirtualFileResultTestBase.cs (1)
515fileInfo.SetupGet(fi => fi.LastModified).Returns(lastModified);
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
45if (fileInfo.Length != asset.GetContentLength() || fileInfo.LastModified != asset.GetLastModified()) 132_context.Response.Headers.LastModified = fileInfo.LastModified.ToString("ddd, dd MMM yyyy HH:mm:ss 'GMT'", CultureInfo.InvariantCulture);
Microsoft.AspNetCore.StaticFiles (3)
HtmlDirectoryFormatter.cs (2)
145HtmlEncode(subdir.LastModified.ToString(CultureInfo.CurrentCulture))); 182HtmlEncode(file.LastModified.ToString(CultureInfo.CurrentCulture)));
StaticFileContext.cs (1)
122DateTimeOffset last = _fileInfo.LastModified;
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
131var last = fileInfo.LastModified;
Microsoft.Extensions.FileProviders.Embedded.Tests (4)
EmbeddedFileProviderTests.cs (4)
51Assert.NotEqual(default(DateTimeOffset), fileInfo.LastModified); 117Assert.NotEqual(default(DateTimeOffset), fileInfo.LastModified); 155Assert.NotEqual(default(DateTimeOffset), fileInfo.LastModified); 193Assert.NotEqual(default(DateTimeOffset), fileInfo.LastModified);