WebExtensionsSetValues(HttpResponse, HttpResponseMessage, IEnumerableString, ActionIResponseCookies, CancellationToken) Method

Used to load headers, response phrase, and status code into HttpResponse for use of proxy endpoints between .NET Core and .NET Framework Apps.

Definition

Namespace: Gemstone.Web
Assembly: Gemstone.Web (in Gemstone.Web.dll) Version: 1.0.171 -- Release Build+f97a6efcf348dbb2ce14e0dc455918e455771b06
public static Task SetValues(
	this HttpResponse result,
	HttpResponseMessage? message,
	IEnumerable<string>? excludedHeaders,
	Action<IResponseCookies>? cookieCallback,
	CancellationToken cancellationToken
)

Parameters

result  HttpResponse
HttpResponse from controller.
message  HttpResponseMessage
Response message from .NET Framework App.
excludedHeaders  IEnumerableString
Additional headers to exclude on the copy over between objects.
cookieCallback  ActionIResponseCookies
Callback to append additional cookies to response header.
cancellationToken  CancellationToken
Token to cancel the action.

Return Value

Task

[Missing <returns> documentation for "M:Gemstone.Web.WebExtensions.SetValues(Microsoft.AspNetCore.Http.HttpResponse,System.Net.Http.HttpResponseMessage,System.Collections.Generic.IEnumerable{System.String},System.Action{Microsoft.AspNetCore.Http.IResponseCookies},System.Threading.CancellationToken)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HttpResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also