mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
PostWireMockMiddlewareInit not invoked #388
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jantanis on GitHub (Dec 8, 2021).
Describe the bug
PostWireMockMiddlewareInit in registered, but not invoked.
Expected behavior:
app.Run from PostWireMockMiddlewareInit is triggered AFTER WireMock has processed.
Test to reproduce
See sample solution: Run and go to http://localhost/test.
WM.Middleware.zip
@StefH commented on GitHub (Jan 3, 2022):
Hello @jantanis
The callbacks are executed, the breakpoint is triggered.
(However, the
app.Run()code does not seem to work...)However, I normally use code like this:

@StefH commented on GitHub (Feb 27, 2022):
Dear @jantanis, I'm closing this now.
Please reply if you still need help.