Playing with .NET Core
and the Kestrel HTTP server.
It involves:
- creating a very basic server
- testing a client request using HttpClient
- parsing command line args
And soon:
- serializing json
Command line parsing is hand crafted, hope Argu, or lower level CommandLineParser to be available on .net core soon!
All of this running on Linux!
Restore packages with:
dotnet restore
dotnet run -- [Options]
Options:
-m, --mode Either "client" or "server"
-p, --port Select port, default 8090
-h Display help