public Task <MediaRootPathInfo> Resolve(CancellationToken cancellationToken = default(CancellationToken)) { var virtualPath = ""; var fsPath = hosting.WebRootPath; var result = new MediaRootPathInfo(virtualPath, fsPath); return(Task.FromResult(result)); }
private MediaRootPathInfo GetLegacySiteFolder() { var virtualPath = "/" + currentSite.AliasId; var fsPath = Path.Combine(hosting.WebRootPath, currentSite.AliasId); var result = new MediaRootPathInfo(virtualPath, fsPath); return(result); }
public Task <MediaRootPathInfo> Resolve(CancellationToken cancellationToken = default(CancellationToken)) { var virtualPath = "/" + currentSite.AliasId; var fsPath = Path.Combine(hosting.WebRootPath, currentSite.AliasId); var result = new MediaRootPathInfo(virtualPath, fsPath); return(Task.FromResult(result)); }
private async Task EnsureProjectSettings() { if (_rootPath != null) { return; } _rootPath = await _mediaPathResolver.Resolve().ConfigureAwait(false); if (_rootPath != null) { return; } }
private async Task EnsurePathInfo() { if (rootPath != null) { return; } rootPath = await _mediaPathResolver.Resolve().ConfigureAwait(false); if (rootPath != null) { return; } }
public Task <MediaRootPathInfo> Resolve(CancellationToken cancellationToken = default(CancellationToken)) { MediaRootPathInfo result = null; if (options.UserPerSiteWwwRoot) { var rootFolderStatus = TryEnsureTenantWwwRoot(); if (rootFolderStatus.Success) { var virtualRoot = GetTenantRootVirtualPath(); result = new MediaRootPathInfo(virtualRoot, rootFolderStatus.RootDirectoryPath); } } if (result == null) { result = GetLegacySiteFolder(); } return(Task.FromResult(result)); }