public DotNetKillswitchHandler() { var container = (IKillswitchLocatorContainer) HttpContext.Current.ApplicationInstance; if (container == null) throw new ArgumentException("the current application does not implement IKillswitchLocatorContainer."); _clientService = container.Locator.Resolve<IClientsService>(); _persistence = container.Locator.Resolve<IKillswitchPersistence>(); }
public NHibernateSession() { _database = new KillswitchPersistence(new SqliteDatabase()); }