Esempio n. 1
0
        public MediaStorageConfiguration(IApplicationContext appContext, IHttpContextAccessor httpContextAccessor)
        {
            _appContext          = appContext;
            _httpContextAccessor = httpContextAccessor;

            PublicPath            = GetPublicPath(appContext.AppConfiguration);
            StoragePath           = GetStoragePath(appContext.AppConfiguration, out var pathIsAbsolute);
            StoragePathIsAbsolute = pathIsAbsolute;
            RootPath       = Path.Combine(appContext.ContentRoot.Root, StoragePath.Replace('/', '\\'));
            IsCloudStorage = false;
        }