Reacting to FileSystem changes

This commit is contained in:
Pranav K 2014-12-19 17:38:29 -08:00
parent c936ae80ca
commit c6eaf00b02
3 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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,