Example #1
0
        public FileSystemStorageProvider(string basePath, string siteUrl, IHttpContextProvider httpContextProvider)
        {
            _httpContextProvider = httpContextProvider;
            _baseUrl             = _httpContextProvider.MapPath("//");
            _siteUrl             = siteUrl;

            _storagePath = basePath;
            if (!_baseUrl.EndsWith("/"))
            {
                _baseUrl = _baseUrl + '/';
            }
        }