Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.47 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.47 KB

Net.BackgroundTasks.Demo

這個專案專注於實作背景作業機制。
This project focus on implement background task mechanism.

練習實作背景作業機制於 .NET 上。
To practice how background task mechanism implement on .NET.

運行專案

假如你想要直接測試應用程式,可以使用 Postman 或其他一些用於模擬 Client-side 行為的應用程式。

If you want to interactively test the application, you can use Postman or any other Http client.

透過 Visual Studio 2022 或者利用 dotnet run 指令先把專案跑起來。

  1. Run the project from Visual Studio 2022 or by typing dotnet run in a command window.

http://localhost:5282/swagger/index.html

  1. Go to http://localhost:5282/swagger/index.html.

嘗試佇列任務。

  1. Try enqueue task.
    Image

回到命令列視窗,你將會看到以下訊息:

  1. Back to command window, your will see the message:
    Image

(可選) 你也可以設定佇列容量。

  1. (Optional) You can set queue capacity.
    Image

    • Name:Queue name
    • Capacity:Queue capacity
    • FullMode:Queue full mode (Wait、DropNewest、DropOldest、DropWrite)

參考