This sample is created during the REST client tutorial for learning C# features. Please see that topic for detailed steps on the code for this sample.
This sample demonstrates making HTTP requests to a web server, using async
and await
, converting JSON objects into C# objects, and terminal output.
To build and run the sample, type the following three commands:
dotnet restore
dotnet build
dotnet run
dotnet restore
installs all the dependencies for this sample into the current directory.
dotnet build
creates the output assembly (or assemblies).
dotnet run
runs the output assembly.