using Ninject.Activation; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.SessionState; namespace WebsitePanel.WebDavPortal.DependencyInjection.Providers { public class HttpSessionStateProvider : Provider { protected override HttpSessionState CreateInstance(IContext context) { return HttpContext.Current.Session; } } }