https://github.com/jthelin/helloowin
A simple example of a service-oriented client-server application written using OWIN.
https://github.com/jthelin/helloowin
csharp hacktoberfest http-server json owin owin-middleware
Last synced: 7 months ago
JSON representation
A simple example of a service-oriented client-server application written using OWIN.
- Host: GitHub
- URL: https://github.com/jthelin/helloowin
- Owner: jthelin
- License: mit
- Created: 2015-05-30T21:53:11.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T04:06:26.000Z (9 months ago)
- Last Synced: 2025-01-25T11:26:42.802Z (9 months ago)
- Topics: csharp, hacktoberfest, http-server, json, owin, owin-middleware
- Language: C#
- Homepage:
- Size: 202 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello Owin
A simple example of a service-oriented client-server application written using [OWIN](http://owin.org)
## Build Status
Linux | Windows
----- | -------
[](https://github.com/jthelin/HelloOwin/actions/workflows/dotnetcore.yml) | [](https://ci.appveyor.com/project/jthelin/helloowin)## How to Run the Sample
1. Build `HelloOwin.sln`, which should restore / download any missing NuGet packages.
2. Run `HelloOwinServer.exe` (use default values, or /? to see cmd line options)
3. Run `HelloOwinClient.exe` (use default values, or /? to see cmd line options)
### Server Log Messages
If the server starts up ok, then you should see console messages similar to this:
``` console
Starting Owin server at Address = http://localhost:12345 UseJson = TruePress any key to exit.
```### Client Log Messages
If everything works ok for client, then you will see console messages similar to this.
``` console
Hello, Jorgen!Press any key to exit.
```If the server is not running,
or if the client is trying to connect to a different address than the server is listenting to,
then you will see error messages on the console window similar to this.``` console
Error starting HelloOwinClient.exe
System.AggregateException: One or more errors occurred.
---> System.Net.WebException: Unable to connect to the remote server
---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
127.0.0.1:54321
```