Skip to content

AdrianBailador/BackgroundTasksExample

Repository files navigation

BackgroundTasksDemo

This project demonstrates how to run background tasks in ASP.NET Core using Channel-based queues.

Features

  • Enqueue tasks via an API.
  • Tasks are processed asynchronously in the background.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/BackgroundTasksDemo.git
  2. Navigate to the project directory:

    cd BackgroundTasksDemo
  3. Restore the NuGet packages and run the project:

    dotnet restore
    dotnet run

Usage

Send a POST request to /api/queue/enqueue to enqueue a background task. For example, using curl:

curl -X POST http://localhost:5000/api/queue/enqueue

Author

Adrián Bailador Panero Blog

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages