From 84efa629c9a472b2ffa24e75ba5b960f57ef27c4 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sun, 18 Mar 2018 10:46:15 +0100 Subject: [PATCH] Updated WireMock as a Windows Service (markdown) --- WireMock-as-a-Windows-Service.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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).