PreWireMockMiddlewareInit / PostWireMockMiddlewareInit

This commit is contained in:
Stef Heyenrath
2017-10-17 20:47:19 +02:00
parent 07f03997c0
commit 37244d5c2f
10 changed files with 82 additions and 24 deletions

View File

@@ -20,7 +20,9 @@ namespace WireMock.Net.ConsoleApplication
{
Urls = new[] { url1, url2, url3 },
StartAdminInterface = true,
ReadStaticMappings = false
ReadStaticMappings = false,
PreWireMockMiddlewareInit = app => { System.Console.WriteLine($"PreWireMockMiddlewareInit : {app.GetType()}"); },
PostWireMockMiddlewareInit = app => { System.Console.WriteLine($"PostWireMockMiddlewareInit : {app.GetType()}"); }
});
System.Console.WriteLine("FluentMockServer listening at {0}", string.Join(" and ", server.Urls));