mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #611] [MERGED] Allow to add custom service registrations when using ASP.NET Core #1000
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?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/611
Author: @starkpl
Created: 5/10/2021
Status: ✅ Merged
Merged: 5/11/2021
Merged by: @StefH
Base:
master← Head:AdditionalServiceRegistration📝 Commits (1)
eaa2533Add AdditionalServiceRegistration action for custom ASP.NET Core DI setup📊 Changes
7 files changed (+35 additions, -0 deletions)
View changed files
📝
examples/WireMock.Net.Console.Net452.Classic/MainApp.cs(+1 -0)📝
src/WireMock.Net/Owin/AspNetCoreSelfHost.cs(+2 -0)📝
src/WireMock.Net/Owin/IWireMockMiddlewareOptions.cs(+5 -0)📝
src/WireMock.Net/Owin/WireMockMiddlewareOptions.cs(+5 -0)📝
src/WireMock.Net/Server/WireMockServer.cs(+1 -0)📝
src/WireMock.Net/Settings/IWireMockServerSettings.cs(+11 -0)📝
src/WireMock.Net/Settings/WireMockServerSettings.cs(+10 -0)📄 Description
Since we allow to add custom middleware to WireMock's ASP.NET Core pipeline (using PreWireMockMiddlewareInit/PostWireMockMiddlewareInit), it would make sense to also allow to add custom service registration to ASP.NET Core DI. My specific use case is adding Azure Application Insights telemetry to WireMock's ASP.NET Core host to track external calls from WireMock (mappings with proxy).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.