public UserImageGenerator( ServiceLocation serviceLocation, UserManager <T> userManager) { _serviceLocation = serviceLocation; _userManager = userManager; }
public UrlConverter( ServiceLocation serviceLocation, AppsContainer appsContainer) { _serviceLocation = serviceLocation; _appsContainer = appsContainer; }
public static string GetProbeDownloadAddress(ServiceLocation serviceLocation, string fullpath) { var(siteName, folders, fileName) = SplitToPath(fullpath); var domain = string.Format(serviceLocation.ProbeIO, siteName); var path = (string.Join('/', folders).EncodePath() + "/").TrimStart('/'); return($"{domain}/{path}{fileName.ToUrlEncoded()}"); }
public StorageService( OSSApiService ossApiService, AppsContainer appsContainer, FilesService filesService, ServiceLocation serviceLocation) { _ossApiService = ossApiService; _appsContainer = appsContainer; _filesService = filesService; _serviceLocation = serviceLocation; }
public static string GetProbeDownloadAddress(this ServiceLocation serviceLocation, string siteName, string path, string fileName) { var fullPath = GetProbeFullPath(siteName, path, fileName); return(GetProbeDownloadAddress(serviceLocation, fullPath)); }
/// <summary> /// Get downloadable file address for probe content. /// </summary> /// <param name="serviceLocation"></param> /// <param name="fullpath">sitename/filepath/filename.extension</param> /// <returns></returns> public static string GetProbeDownloadAddress(ServiceLocation serviceLocation, string fullpath) { return($"{serviceLocation.Probe}/Download/Open/{fullpath.EncodePath()}"); }
public static string GetProbeDownloadAddress(ServiceLocation serviceLocation, string siteName, string path, string fileName) { var filePath = $"{path}/{fileName}".TrimStart('/'); return($"{serviceLocation.Probe}/Download/Open/{siteName.ToUrlEncoded()}/{filePath.EncodePath()}"); }
public UrlConverter(ServiceLocation serviceLocation) { _serviceLocation = serviceLocation; }
public static string GetProbeDownloadAddress(ServiceLocation serviceLocation, string siteName, string path, string fileName) { var filePath = $"{path}/{fileName}".TrimStart('/'); return($"{serviceLocation.Probe}/Download/InSites/{siteName}/{filePath}"); }
public static string GetProbeDownloadAddress(ServiceLocation serviceLocation, string fullpath) { return($"{serviceLocation.Probe}/Download/InSites/{fullpath}"); }