Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bunnynut 136 posts 318 karma points
    Jun 20, 2015 @ 09:30
    Bunnynut
    0

    MVC async operations in custom Action Umbraco 7

    Hello there,

    I'm using Umbraco 7 and i want to create a custom action where i retrieve some data from a webservice asynchronously but the following code doesnt work:

    public async override Task<ActionResult> TestAction(RenderModel model)
    {
      await AsyncOperation();
    
      return base.Index(model);
    }
    
    public async Task AsyncOperation()
    {
    
    }
    

    Is there another way to make this work?

Please Sign in or register to post replies

Write your reply to:

Draft