Class UnaryReplayer
- Namespace
- Kuestenlogik.Bowire.Mock.Replay
- Assembly
- Kuestenlogik.Bowire.Mock.dll
Writes a recorded unary response back onto an ASP.NET HttpContext.
Handles REST unary and gRPC unary; non-unary or unrecognised-protocol steps
get a structured 501 response so Phase-2 users see a clear error
instead of silent wrong behaviour.
public static class UnaryReplayer
- Inheritance
-
UnaryReplayer
- Inherited Members
Methods
ReplayAsync(HttpContext, BowireRecordingStep, MockOptions, ILogger, RequestTemplate?, CancellationToken)
Full-featured overload with a RequestTemplate so
the substitutor can resolve ${request.*} placeholders
against the live inbound request. Built by
MockHandler after matching; tests can pass
null to keep the pre-templating behaviour.
public static Task<int> ReplayAsync(HttpContext ctx, BowireRecordingStep step, MockOptions options, ILogger logger, RequestTemplate? request, CancellationToken ct)
Parameters
ctxHttpContextstepBowireRecordingStepoptionsMockOptionsloggerILoggerrequestRequestTemplatectCancellationToken
Returns
ReplayAsync(HttpContext, BowireRecordingStep, MockOptions, ILogger, CancellationToken)
Emit step as the HTTP response on ctx.
public static Task<int> ReplayAsync(HttpContext ctx, BowireRecordingStep step, MockOptions options, ILogger logger, CancellationToken ct)
Parameters
ctxHttpContextstepBowireRecordingStepoptionsMockOptionsloggerILoggerctCancellationToken