Refactoring to use object resolver, instead of ProviderBase
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
using System.Web;
|
||||
|
||||
namespace Umbraco.Core.ObjectResolution
|
||||
{
|
||||
public interface IHttpContextFactory
|
||||
{
|
||||
HttpContextBase Context { get; }
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System.Web;
|
||||
|
||||
namespace Umbraco.Core.ObjectResolution
|
||||
{
|
||||
public class WebHttpContextFactory : IHttpContextFactory
|
||||
{
|
||||
public HttpContextBase Context
|
||||
{
|
||||
get { return new HttpContextWrapper(HttpContext.Current); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user