Reacting to FileSystem changes
This commit is contained in:
parent
c936ae80ca
commit
c6eaf00b02
|
|
@ -53,9 +53,9 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
public long Length { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the last modified <see cref="DateTime"/> for the file at the time of compilation.
|
||||
/// Gets or sets the last modified <see cref="DateTimeOffset"/> for the file at the time of compilation.
|
||||
/// </summary>
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTimeOffset LastModified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the file hash, should only be available for pre compiled files.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
/// <summary>
|
||||
/// Last modified at compilation time.
|
||||
/// </summary>
|
||||
public DateTime LastModified { get; set; }
|
||||
public DateTimeOffset LastModified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The length of the file in bytes.
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace Microsoft.AspNet.Mvc.Razor
|
|||
protected virtual string GenerateFile([NotNull] RazorFileInfo fileInfo)
|
||||
{
|
||||
return string.Format(FileFormat,
|
||||
fileInfo.LastModified.ToFileTimeUtc(),
|
||||
fileInfo.LastModified.ToFileTime(),
|
||||
fileInfo.Length,
|
||||
fileInfo.RelativePath,
|
||||
fileInfo.FullTypeName,
|
||||
|
|
|
|||
Loading…
Reference in New Issue