Updated WireMock as a Windows Service (markdown)

Stef Heyenrath
2018-03-18 10:46:15 +01:00
parent f517795829
commit 84efa629c9

@@ -1,5 +1,8 @@
It's also possible to wrap WireMock in a Windows Service.
# Program.cs
Create a **Program.cs** with the following content:
``` csharp
@@ -69,4 +72,13 @@ public static class Program
}
```
When you start the exe file in Visual Studio or from the commandline, the application will behave same like a
When you start the exe file in Visual Studio or from the commandline, the application will behave same like [WireMock-as a standalone process](https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-as-a-standalone-process).
# Example
For a full working example which also provides an **Installer** and batch-files to
* install
* start
* stop
* uninstall
the service, see [examples/WireMock.Net.Service](https://github.com/WireMock-Net/WireMock.Net/tree/master/examples/WireMock.Net.Service).