Small code refactor (#117)

This commit is contained in:
Stef Heyenrath
2018-04-05 20:51:10 +02:00
parent 2d2a2dd6fc
commit 4f294baff2
5 changed files with 5 additions and 14 deletions

View File

@@ -80,7 +80,7 @@ namespace WireMock.Owin
app.Use<WireMockMiddleware>(_options);
_options.PostWireMockMiddlewareInit?.Invoke(app);
};
foreach (var url in Urls)
{
servers.Add(WebApp.Start(url, startup));
@@ -104,7 +104,7 @@ namespace WireMock.Owin
{
IsStarted = false;
// Dispose all servers in finally block to make sure clean up allocated resource on error happening
servers.ForEach((s) => s.Dispose());
servers.ForEach(s => s.Dispose());
}
}
}