[PR #145] [MERGED] Cancellation token not passed to server instance in .NET Core 2 #777

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

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/145
Author: @Bob11327
Created: 5/28/2018
Status: Merged
Merged: 5/28/2018
Merged by: @StefH

Base: masterHead: master


📝 Commits (1)

  • c88735e Fix code for .NET Core 2 so that server has cancellation token, and Stop method waits for shutdown. This resolves issues when using .NET Core 2 and starting/stopping server instances.

📊 Changes

2 files changed (+4 additions, -2 deletions)

View changed files

📝 src/WireMock.Net/Owin/AspNetCoreSelfHost.cs (+1 -1)
📝 src/WireMock.Net/Server/FluentMockServer.cs (+3 -1)

📄 Description

Fix code for .NET Core 2 so that server has cancellation token, and Stop method waits for shutdown. This resolves issues when using .NET Core 2 and starting/stopping server instances.


🔄 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/145 **Author:** [@Bob11327](https://github.com/Bob11327) **Created:** 5/28/2018 **Status:** ✅ Merged **Merged:** 5/28/2018 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`c88735e`](https://github.com/wiremock/WireMock.Net/commit/c88735e4238eb0c94cc470b5bc9dc6f84bbeadd8) Fix code for .NET Core 2 so that server has cancellation token, and Stop method waits for shutdown. This resolves issues when using .NET Core 2 and starting/stopping server instances. ### 📊 Changes **2 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/Owin/AspNetCoreSelfHost.cs` (+1 -1) 📝 `src/WireMock.Net/Server/FluentMockServer.cs` (+3 -1) </details> ### 📄 Description Fix code for .NET Core 2 so that server has cancellation token, and Stop method waits for shutdown. This resolves issues when using .NET Core 2 and starting/stopping server instances. --- <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:30 +01:00
adam closed this issue 2025-12-29 08:33:30 +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#777