Beispiel #1
0
 public static Uri AsRawUri(this CdnOptions options, string fileKey)
 {
     return(new Uri(options.CdnUrl, $"{CdnRawsUriPrefix}/{fileKey}"));
 }
Beispiel #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"));
 }