EndpointHttpContextExtensions.SetEndpoint(HttpContext, Endpoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extension method for setting the Endpoint for the current request.
public:
[System::Runtime::CompilerServices::Extension]
static void SetEndpoint(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Http::Endpoint ^ endpoint);
public static void SetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint endpoint);
public static void SetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Http.Endpoint? endpoint);
static member SetEndpoint : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Http.Endpoint -> unit
<Extension()>
Public Sub SetEndpoint (context As HttpContext, endpoint As Endpoint)
Parameters
- context
- HttpContext
The HttpContext context.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for