EndpointHttpContextExtensions.GetEndpoint(HttpContext) 方法

定义

用于获取 Endpoint 当前请求的 的扩展方法。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Http::Endpoint ^ GetEndpoint(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static Microsoft.AspNetCore.Http.Endpoint GetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context);
public static Microsoft.AspNetCore.Http.Endpoint? GetEndpoint (this Microsoft.AspNetCore.Http.HttpContext context);
static member GetEndpoint : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Http.Endpoint
<Extension()>
Public Function GetEndpoint (context As HttpContext) As Endpoint

参数

context
HttpContext

上下文 HttpContext

返回

Endpoint

适用于