Copied to clipboard

Flag this post as spam?

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


  • Bunnynut 129 posts 311 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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies