mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-25 18:41:01 +01:00
Updated WireMock as a Windows Service (markdown)
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user