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