This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "properties": { | |
| "Serilog": { | |
| "title": "JSON schema for Serilog.Settings.Configuration", | |
| "$schema": "http://json-schema.org/draft-04/schema", | |
| "type": "object", | |
| "description": "Serilog configuration", | |
| "definitions": { | |
| "libraries": { | |
| "type": "array", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [int]$Port = 8080 | |
| ); | |
| $routes = @{ | |
| "/ola" = { return '<html><body>Hello world!</body></html>' } | |
| } | |
| $url = "http://localhost:$Port/" | |
| $listener = New-Object System.Net.HttpListener | |
| $listener.Prefixes.Add($url) |