예제 #1
0
 public static Uri AsRawUri(this CdnOptions options, string fileKey)
 {
     return(new Uri(options.CdnUrl, $"{CdnRawsUriPrefix}/{fileKey}"));
 }
예제 #2
0
 public static Uri AsPreviewUri(this CdnOptions options, long objectId, string versionId, long templateCode)
 {
     return(new Uri(options.CdnUrl, $"{CdnPreviewsUriPrefix}/{objectId}/{versionId}/{templateCode}/image.png"));
 }