webdav portal owa editing alpha
This commit is contained in:
parent
7aa68cd775
commit
aedc7ec08e
33 changed files with 969 additions and 153 deletions
|
@ -1,4 +1,5 @@
|
|||
using Ninject;
|
||||
using System.Web.Http.Dependencies;
|
||||
using Ninject;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
@ -7,13 +8,14 @@ using System.Web.Mvc;
|
|||
|
||||
namespace WebsitePanel.WebDavPortal.DependencyInjection
|
||||
{
|
||||
public class NinjectDependecyResolver : IDependencyResolver
|
||||
public class NinjectDependecyResolver : System.Web.Mvc.IDependencyResolver, System.Web.Http.Dependencies.IDependencyResolver
|
||||
{
|
||||
IKernel kernal;
|
||||
|
||||
public NinjectDependecyResolver()
|
||||
{
|
||||
kernal = new StandardKernel(new NinjectSettings { AllowNullInjection = true });
|
||||
|
||||
AddBindings();
|
||||
}
|
||||
|
||||
|
@ -27,9 +29,19 @@ namespace WebsitePanel.WebDavPortal.DependencyInjection
|
|||
return kernal.GetAll(serviceType);
|
||||
}
|
||||
|
||||
public IDependencyScope BeginScope()
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
||||
private void AddBindings()
|
||||
{
|
||||
PortalDependencies.Configure(kernal);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue