CallingContext.GenerateParsedResults(HttpStatusCode, String, Task<Stream>) Method

Definition

Generate the ParsedCallingRequest from the arguments

public static Microsoft.Bot.Builder.Calling.ParsedCallingRequest GenerateParsedResults (System.Net.HttpStatusCode statusCode, string content = default, System.Threading.Tasks.Task<System.IO.Stream> additionalData = default);
static member GenerateParsedResults : System.Net.HttpStatusCode * string * System.Threading.Tasks.Task<System.IO.Stream> -> Microsoft.Bot.Builder.Calling.ParsedCallingRequest
Public Shared Function GenerateParsedResults (statusCode As HttpStatusCode, Optional content As String = Nothing, Optional additionalData As Task(Of Stream) = Nothing) As ParsedCallingRequest

Parameters

statusCode
HttpStatusCode

Status code indicating if the parsing was successful or not

content
String

Content from the request. If the request had multipart content, the first part should be json and this will contain the first json content

additionalData
Task<Stream>

If the request had multipart content, this will contain the additional data present after the first json content

Returns

ParsedCallingRequest

Applies to