Reacting to IFileSystemInfo changes
This commit is contained in:
parent
313a537ea1
commit
096ba08a8d
|
|
@ -3,9 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using Microsoft.AspNet.FileSystems;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
using Microsoft.Framework.Runtime;
|
||||
|
|
@ -325,14 +323,14 @@ namespace Microsoft.AspNet.Mvc.Core.Test
|
|||
public class ControllableExpiringFileInfoCache : ExpiringFileInfoCache
|
||||
{
|
||||
public ControllableExpiringFileInfoCache(IApplicationEnvironment env,
|
||||
IOptionsAccessor<MvcOptions> optionsAccessor)
|
||||
IOptionsAccessor<MvcOptions> optionsAccessor)
|
||||
: base(env, optionsAccessor)
|
||||
{
|
||||
}
|
||||
|
||||
private DateTime? _internalUtcNow { get; set; }
|
||||
private DummyFileSystem _underlyingFileSystem = new DummyFileSystem();
|
||||
|
||||
|
||||
protected override DateTime UtcNow
|
||||
{
|
||||
get
|
||||
|
|
@ -413,6 +411,11 @@ namespace Microsoft.AspNet.Mvc.Core.Test
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public string TryGetParentPath(string subpath, out string parentPath)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class DummyFileInfo : IFileInfo
|
||||
|
|
|
|||
Loading…
Reference in New Issue