diff --git a/WireMock-as-a-Windows-Service.md b/WireMock-as-a-Windows-Service.md index 357ce95..147cdac 100644 --- a/WireMock-as-a-Windows-Service.md +++ b/WireMock-as-a-Windows-Service.md @@ -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 \ No newline at end of file +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).