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; }
|
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.
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue