
Async/await in Umbraco custom controllers
Custom controllers in Umbraco natively support async/await operations but it's not clear how to implement an asynchronous controller correctly.
With over 20 years of experience in corporate and agency .Net web development, Digbyswift can meet and support your requirements. We specialise in Azure, Umbraco CMS solutions.

Tag list:
MailchimpJSONSerializationIntegrationsConfigurationUmbracoAsyncTortoiseSVNSource ControlVisual StudioWorkflow FoundationNode.jsGruntJavascriptSQLLoggingElmahLog4netException handlingWebDeployIISDeploymentsAirbrakeUnit testsSam KitsonWix
Custom controllers in Umbraco natively support async/await operations but it's not clear how to implement an asynchronous controller correctly.

By default your Backoffice would be accessible at /umbraco. This not only provides users an opportunity to (try and) access the Backoffice but it also divulges the fact that you are using Umbraco and .Net and it may be possible to exploit this - neither Umbraco nor .Net are flawless.

Following on from our original post about a bug in async/await actions in custom controllers in Umbraco 6 & 7, we did some investigations and found the cause. So we thought we'd outline our solution for all those who can't upgrade. It's also an interesting trip into code that you wouldn't normally touch.

Well it's taken long enough but we now have a fresh design courtesy of Sam Kitson and a completely new build using Umbraco 7.2. Streamlined and sleek, just what we were hoping for.