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; } public long Length { get; private set; }
/// <summary> /// <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> /// </summary>
public DateTime LastModified { get; set; } public DateTimeOffset LastModified { get; set; }
/// <summary> /// <summary>
/// Gets the file hash, should only be available for pre compiled files. /// Gets the file hash, should only be available for pre compiled files.

View File

@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Razor
/// <summary> /// <summary>
/// Last modified at compilation time. /// Last modified at compilation time.
/// </summary> /// </summary>
public DateTime LastModified { get; set; } public DateTimeOffset LastModified { get; set; }
/// <summary> /// <summary>
/// The length of the file in bytes. /// 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) protected virtual string GenerateFile([NotNull] RazorFileInfo fileInfo)
{ {
return string.Format(FileFormat, return string.Format(FileFormat,
fileInfo.LastModified.ToFileTimeUtc(), fileInfo.LastModified.ToFileTime(),
fileInfo.Length, fileInfo.Length,
fileInfo.RelativePath, fileInfo.RelativePath,
fileInfo.FullTypeName, fileInfo.FullTypeName,