This commit is contained in:
Stef Heyenrath
2026-02-20 20:35:29 +01:00
parent 5388130009
commit da3dd2de55
15 changed files with 10 additions and 24 deletions
@@ -1,6 +1,5 @@
// Copyright © WireMock.Net
using System;
using System.Net.WebSockets;
using Stef.Validation;
using WireMock.Matchers;
@@ -42,8 +42,7 @@ internal class WebSocketMessageBuilder : IWebSocketMessageBuilder
public IWebSocketMessageBuilder WithDelay(int delayInMilliseconds)
{
Guard.Condition(delayInMilliseconds, d => d >= 0, nameof(delayInMilliseconds));
Delay = TimeSpan.FromMilliseconds(delayInMilliseconds);
return this;
return WithDelay(TimeSpan.FromMilliseconds(delayInMilliseconds));
}
public IWebSocketMessageBuilder Close()