public PantherContext(IServiceProvider services, IPantherRouter router, IPantherFileSystem fileSystem) { Services = services; FileSystem = fileSystem; Router = router; this.siteService = new SiteService(this); this.pageService = new PageService(this); }
public Store(IPantherFileSystem fileSystem) { lock (objLock) { FileSystem = fileSystem; _filename = FileSystem.CreateFilename(typeof(T)); _content = string.Empty; //if (!FileSystem.FileExists(_filename)) //{ // FileSystem.CreateFile(_filename); //} try { Items = FileSystem.ReadFile <List <T> >(_filename); } catch { Items = new List <T>(); Save(); } } }
public SiteStore(IPantherFileSystem fileSystem) : base(fileSystem) { }
public UserStore(IPantherFileSystem fileSystem) : base(fileSystem) { }
public ContentStore(IPantherFileSystem fileSystem) : base(fileSystem) { }
public PluginManager(IPantherFileSystem filesystem) { _fileSystem = filesystem; }
public PageDefinitionStore(IPantherFileSystem fileSystem) : base(fileSystem) { }