Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created August 28, 2019 22:54
Show Gist options
  • Select an option

  • Save explorer14/4f7f0dc07dd9e53f20fa34fbe8fb242c to your computer and use it in GitHub Desktop.

Select an option

Save explorer14/4f7f0dc07dd9e53f20fa34fbe8fb242c to your computer and use it in GitHub Desktop.

Revisions

  1. explorer14 created this gist Aug 28, 2019.
    7 changes: 7 additions & 0 deletions BackgroundProcessViaHttp.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    [HttpPost("api/workflow/invoke")]
    public IActionResult Invoke()
    {
    Task.Run(async ()=> await useCase.StartBackgroundWork());

    return Accepted();
    }