コード例 #1
0
 public PantherContext(IServiceProvider services, IPantherRouter router, IPantherFileSystem fileSystem)
 {
     Services         = services;
     FileSystem       = fileSystem;
     Router           = router;
     this.siteService = new SiteService(this);
     this.pageService = new PageService(this);
 }
コード例 #2
0
ファイル: PantherContext.cs プロジェクト: freemsly/CMS
 public PantherContext(IServiceProvider services, IPantherRouter router, IPantherFileSystem fileSystem)
 {
     Services = services;
     FileSystem = fileSystem;
     Router = router;
     this.siteService = new SiteService(this);
     this.pageService = new PageService(this);
 }
コード例 #3
0
        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();
                }
            }
        }
コード例 #4
0
 public SiteStore(IPantherFileSystem fileSystem) : base(fileSystem)
 {
 }
コード例 #5
0
 public UserStore(IPantherFileSystem fileSystem) : base(fileSystem)
 {
 }
コード例 #6
0
 public ContentStore(IPantherFileSystem fileSystem) : base(fileSystem)
 {
 }
コード例 #7
0
 public PluginManager(IPantherFileSystem filesystem)
 {
     _fileSystem = filesystem;
 }
コード例 #8
0
 public PageDefinitionStore(IPantherFileSystem fileSystem) : base(fileSystem)
 {
 }