Skip to content

deer-roy/async-task-api-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api Task Example

Running the server

First run the api server

dotnet run --project api/api.csproj

Then either make calls to the api yourself, or use the api-caller project to make a number of requests to the server.

Using the api caller

dotnet .. <cpu or io> <number of requests> <optional async>

Examples

Run cpu bound task using async/await

dotnet run --project api-caller/api-caller.csproj -- cpu <number of requests> async

Run cpu bound task without using async/await

dotnet run --project api-caller/api-caller.csproj -- cpu <number of requests>

Run io bound task using async/await

dotnet run --project api-caller/api-caller.csproj -- io <number of requests> async

Run io bound task without using async/await

dotnet run --project api-caller/api-caller.csproj -- io <number of requests>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages