Extension Methods¶
This page collects public Mocker extension methods that have XML documentation or explicit docs annotations.
Annotated extension methods continue to appear in their regular category pages; this page gives the extension surface a dedicated view.
Data¶
CloneDetailed¶
Source file, signature, and docstring
Member
DataExtensions.CloneDetailed(this Data<object> data, DateTime? datetime = null)
Kind function
Declaring Type DataExtensions (extension type)
Source File QaaS.Mocker.Servers/Extensions/DataExtensions.cs
Signature
Docstring
Clones a payload into a DetailedData{T} instance with a capture timestamp.
Http¶
ToHttpMethodEnum¶
Source file, signature, and docstring
Member
HttpExtensions.ToHttpMethodEnum(this string stringHttpMethod)
Kind function
Declaring Type HttpExtensions (extension type)
Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs
Signature
Docstring
Converts a string representation of an HTTP method to the corresponding HttpMethod enum.
ConstructRequestDataAsync¶
Source file, signature, and docstring
Member
HttpExtensions.ConstructRequestDataAsync(this Microsoft.AspNetCore.Http.HttpRequest request)
Kind function
Declaring Type HttpExtensions (extension type)
Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs
Signature
public static async Task<Data<object>> ConstructRequestDataAsync(this Microsoft.AspNetCore.Http.HttpRequest request)
Docstring
Constructs request data from an HttpRequest .
HandleResponseDataAndCloseAsync¶
Source file, signature, and docstring
Member
HttpExtensions.HandleResponseDataAndCloseAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Data<object> responseData, HttpMethod method)
Kind function
Declaring Type HttpExtensions (extension type)
Source File QaaS.Mocker.Servers/Extensions/HttpExtensions.cs
Signature
public static async Task HandleResponseDataAndCloseAsync(this Microsoft.AspNetCore.Http.HttpResponse response, Data<object> responseData, HttpMethod method)
Docstring
Handles response data by setting headers and writing the response body.
Socket¶
GetBytesFromChannelWithinTimeout¶
Source file, signature, and docstring
Member
SocketExtensions.GetBytesFromChannelWithinTimeout(this Socket channel, int timeout, int bufferSize, EndPoint? endpoint = null, ILogger? logger = null)
Kind function
Declaring Type SocketExtensions (extension type)
Source File QaaS.Mocker.Servers/Extensions/SocketExtensions.cs
Signature
public static byte[]? GetBytesFromChannelWithinTimeout(this Socket channel, int timeout, int bufferSize, EndPoint? endpoint = null, ILogger? logger = null)
Docstring
Implements timeout-based socket collection. When endpoint is provided the call is treated as datagram-based receive, so the loop does not rely on Available before reading.