mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-24 09:18:27 +02:00
Updated Stubbing (markdown)
@@ -78,7 +78,7 @@ var customerReadRequests = server.SearchLogsFor(
|
|||||||
## Simulating delays
|
## Simulating delays
|
||||||
A server can be configured with a global delay that will be applied to all requests. To do so you need to call method WireMockServer.AddRequestProcessingDelay() as below:
|
A server can be configured with a global delay that will be applied to all requests. To do so you need to call method WireMockServer.AddRequestProcessingDelay() as below:
|
||||||
```csharp
|
```csharp
|
||||||
var server = FluentMockServer.Start();
|
var server = WireMockServer.Start();
|
||||||
|
|
||||||
// add a delay of 30 seconds for all requests
|
// add a delay of 30 seconds for all requests
|
||||||
server.AddRequestProcessingDelay(TimeSpan.FromSeconds(30));
|
server.AddRequestProcessingDelay(TimeSpan.FromSeconds(30));
|
||||||
|
|||||||
Reference in New Issue
Block a user