[PR #63] [MERGED] Fix issue with concurrent logging #752

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

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/63
Author: @volodymyr-fed
Created: 11/17/2017
Status: Merged
Merged: 11/18/2017
Merged by: @StefH

Base: masterHead: feature/ConcurrentLogEntities


📝 Commits (2)

  • 45da8f0 Fix issue with concurrent logging
  • 8f51d16 Fix namespace + code format/cleanup

📊 Changes

7 files changed (+174 additions, -3 deletions)

View changed files

📝 src/WireMock.Net/Owin/AspNetCoreSelfHost.cs (+1 -0)
src/WireMock.Net/Owin/GlobalExceptionMiddleware.cs (+49 -0)
📝 src/WireMock.Net/Owin/OwinSelfHost.cs (+1 -0)
📝 src/WireMock.Net/Owin/WireMockMiddleware.cs (+2 -1)
📝 src/WireMock.Net/Owin/WireMockMiddlewareOptions.cs (+2 -1)
src/WireMock.Net/Util/ConcurentObservableCollection.cs (+77 -0)
📝 test/WireMock.Net.Tests/ObservableLogEntriesTest.cs (+42 -1)

📄 Description

Fixed issue with concurrent logging:

  • added ConcurrentObservableCollection which is thread safe
  • added test for checking logging with parallel requests
  • added GlobalExceptionMiddleware that handles all exceptions that can happen in next middlewares
  • changed response body from exception message to serialized exception when exception is thrown(it`s better to have whole exception fields than only exception message)

🔄 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/63 **Author:** [@volodymyr-fed](https://github.com/volodymyr-fed) **Created:** 11/17/2017 **Status:** ✅ Merged **Merged:** 11/18/2017 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `feature/ConcurrentLogEntities` --- ### 📝 Commits (2) - [`45da8f0`](https://github.com/wiremock/WireMock.Net/commit/45da8f030c3e1a595ea9e7fb31c6bf63b9009be4) Fix issue with concurrent logging - [`8f51d16`](https://github.com/wiremock/WireMock.Net/commit/8f51d1647535ef6ca0c2a803faca71a0e9cfe8eb) Fix namespace + code format/cleanup ### 📊 Changes **7 files changed** (+174 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/Owin/AspNetCoreSelfHost.cs` (+1 -0) ➕ `src/WireMock.Net/Owin/GlobalExceptionMiddleware.cs` (+49 -0) 📝 `src/WireMock.Net/Owin/OwinSelfHost.cs` (+1 -0) 📝 `src/WireMock.Net/Owin/WireMockMiddleware.cs` (+2 -1) 📝 `src/WireMock.Net/Owin/WireMockMiddlewareOptions.cs` (+2 -1) ➕ `src/WireMock.Net/Util/ConcurentObservableCollection.cs` (+77 -0) 📝 `test/WireMock.Net.Tests/ObservableLogEntriesTest.cs` (+42 -1) </details> ### 📄 Description Fixed issue with concurrent logging: * added `ConcurrentObservableCollection` which is thread safe * added test for checking logging with parallel requests * added `GlobalExceptionMiddleware` that handles all exceptions that can happen in next middlewares * changed response body from exception message to serialized exception when exception is thrown(it`s better to have whole exception fields than only exception message) --- <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:33:24 +01:00
adam closed this issue 2025-12-29 08:33:24 +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#752