[PR #611] [MERGED] Allow to add custom service registrations when using ASP.NET Core #1000

Closed
opened 2025-12-29 08:34:18 +01:00 by adam · 0 comments
Owner

📋 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: masterHead: AdditionalServiceRegistration


📝 Commits (1)

  • eaa2533 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/wiremock/WireMock.Net/pull/611 **Author:** [@starkpl](https://github.com/starkpl) **Created:** 5/10/2021 **Status:** ✅ Merged **Merged:** 5/11/2021 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `AdditionalServiceRegistration` --- ### 📝 Commits (1) - [`eaa2533`](https://github.com/wiremock/WireMock.Net/commit/eaa2533321339aecd4cb8c169f70d944a1e4a9f2) Add AdditionalServiceRegistration action for custom ASP.NET Core DI setup ### 📊 Changes **7 files changed** (+35 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 08:34:18 +01:00
adam closed this issue 2025-12-29 08:34:18 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#1000