You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.
Could you please consider change of _lastModified date to last write time of an assembly? This information would be very useful if you want to use this file provider also for different purposes than Razor View.
My idea is:
if (assembly.Location != null)
_lastModified = new FileInfo(assembly.Location).LastWriteTime;
else
_lastModified = DateTimeOffset.MaxValue;
Thank you
The text was updated successfully, but these errors were encountered:
martinba1
changed the title
EmbeddedFileProvider - Change _lastModified date to last write of an assembly
EmbeddedFileProvider - Change _lastModified date to last write time of an assembly
Jun 29, 2016
Could you please consider change of _lastModified date to last write time of an assembly? This information would be very useful if you want to use this file provider also for different purposes than Razor View.
File: FileSystem/src/Microsoft.Extensions.FileProviders.Embedded/EmbeddedFileProvider.cs
Current: _lastModified = DateTimeOffset.MaxValue;
My idea is:
if (assembly.Location != null)
_lastModified = new FileInfo(assembly.Location).LastWriteTime;
else
_lastModified = DateTimeOffset.MaxValue;
Thank you
The text was updated successfully, but these errors were encountered: