Created
January 15, 2021 23:31
-
-
Save ajtatum/fe03b9287cd45c26c78b558c21978180 to your computer and use it in GitHub Desktop.
Azure Storage To Photo CDN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string ConvertToPhotoCdn(string imageUrl) | |
{ | |
var cdnUrl = _appSettings.CDN.Images.CdnUrl; | |
return _appSettings.CDN.Images.UseCdn | |
? imageUrl.Replace(_appSettings.Azure.Storage.StorageBlobUrl, cdnUrl) | |
: imageUrl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment