Aftab Hussain

Results 4 comments of Aftab Hussain

So I didn't went to mention a Windows service, but that is the idea, obviously Polaris is xplat, so the code will need to cater for a Linux service also....

Here is what I'm currently doing: **Polaris Script** Path: `C:\Scripts\Polaris.ps1` ```PowerShell Import-Module C:\Polaris\Polaris.psm1 New-WebRoute -Path "/helloworld" -Method "GET" -ScriptBlock { $response.Send('Hello World'); } Start-Polaris # Hack to keep script running...

Any chance I can have some feedback on this: [Import-WebRoute](https://github.com/affieuk/Polaris/commit/a1efd0a89b34558ca0f515fd2e6b7c55095a3506) The function name needs to change, doesn't seem right. Also need to figure out how to map http verbs to...

The PowerShell equivalent of: ``` info = Socket.gethostbyname(Socket.gethostname) ... fqdn info.first` ``` Is: `[System.Net.Dns]::GetHostByName([System.Net.Dns]::GetHostName()).HostName`