Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

How do I run Background Tasks in ASP.NET Web.Api?

$
0
0

I'm developing an ASP.NET MVC Web Api 2 app with C# and .NET Framework 4.5.1.

Sometimes, when user calls a get on an `ApiController` I have to run a task in background. The task will fill up a database table with more data.

Searching on Internet I have found this article, How to run Background Tasks in ASP.NET. And I want to use HangFire. But reading its documentation I haven't found a way to use it without using OWIN on my ASP.NET Web Api app (I'm not using it right now).

Is there a way to use Hangfire without OWIN? or maybe, is there another option to run background tasks on an ASP.NET Web Api 2 app?


Viewing all articles
Browse latest Browse all 4850

Trending Articles