ASP.Net–Do not use Task .Result in main context

Overview You can guarantee you will deadlock if you have a call similar to this in your code, where CallHttp is a an AsyncTask that awaits a result: public class DeadlockController : ApiController { public string Get() { string ret = “”; // deadlock ret = Utilities.CallHttp().Result; return ret; } Cause and Symptoms The reason…

1

Azure App Service Authentication – Using a Blob Storage for Token Cache

Chris had this note in his blog App Service Token Store “As an alternative, you can provision an Azure Blob Storage container and configure your web app with a SaS URL (with read/write/list access) pointing to that blob container. This SaS URL can then be saved to the WEBSITE_AUTH_TOKEN_CONTAINER_SASURL app setting. When this app setting…

2