public override IFileSystem GetFileSystem(IFileSystemPermission permission)
        {
            siteSettings = CacheHelper.GetCurrentSiteSettings();
            //IFileSystemPermission p = GetFileSystemPermission();
            if (permission == null)
            {
                return(null);
            }
            if (string.IsNullOrEmpty(permission.VirtualRoot))
            {
                return(null);
            }

            return(DiskFileSystem.GetFileSystem(permission));
        }
Esempio n. 2
0
        public static DiskFileSystem GetFileSystem(IFileSystemPermission permission)
        {
            if (permission == null)
            {
                return(null);
            }
            if (string.IsNullOrEmpty(permission.VirtualRoot))
            {
                return(null);
            }

            DiskFileSystem fs = new DiskFileSystem(permission);

            return(fs);
        }
        public override IFileSystem GetFileSystem(int siteId)
        {
            var siteSettings = new SiteSettings(siteId);

            if (siteSettings == null)
            {
                log.Error($"Site Settings is NULL!!!! Passed SiteId={siteId} from ");
            }
            IFileSystemPermission p = GetFileSystemPermission();

            if (p == null)
            {
                return(null);
            }

            if (string.IsNullOrEmpty(p.VirtualRoot))
            {
                return(null);
            }

            return(DiskFileSystem.GetFileSystem(p));
        }
Esempio n. 4
0
        public static DiskFileSystem GetFileSystem(IFileSystemPermission permission)
        {
            if (permission == null) { return null; }
            if(string.IsNullOrEmpty(permission.VirtualRoot)) { return null; }

            DiskFileSystem fs = new DiskFileSystem(permission);
            return fs;
        }