Compartir a través de


GetHttpContextExtensions.GetHttpContext Método

Definición

Sobrecargas

GetHttpContext(HubCallerContext)

Obtiene HttpContext de la conexión especificada o null si la conexión no está asociada a una solicitud HTTP.

GetHttpContext(HubConnectionContext)

Obtiene HttpContext de la conexión especificada o null si la conexión no está asociada a una solicitud HTTP.

GetHttpContext(HubCallerContext)

Source:
GetHttpContextExtensions.cs
Source:
GetHttpContextExtensions.cs
Source:
GetHttpContextExtensions.cs

Obtiene HttpContext de la conexión especificada o null si la conexión no está asociada a una solicitud HTTP.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Http::HttpContext ^ GetHttpContext(Microsoft::AspNetCore::SignalR::HubCallerContext ^ connection);
public static Microsoft.AspNetCore.Http.HttpContext GetHttpContext (this Microsoft.AspNetCore.SignalR.HubCallerContext connection);
public static Microsoft.AspNetCore.Http.HttpContext? GetHttpContext (this Microsoft.AspNetCore.SignalR.HubCallerContext connection);
static member GetHttpContext : Microsoft.AspNetCore.SignalR.HubCallerContext -> Microsoft.AspNetCore.Http.HttpContext
<Extension()>
Public Function GetHttpContext (connection As HubCallerContext) As HttpContext

Parámetros

connection
HubCallerContext

La conexión.

Devoluciones

para HttpContext la conexión o null si la conexión no está asociada a una solicitud HTTP.

Se aplica a

GetHttpContext(HubConnectionContext)

Source:
GetHttpContextExtensions.cs
Source:
GetHttpContextExtensions.cs
Source:
GetHttpContextExtensions.cs

Obtiene HttpContext de la conexión especificada o null si la conexión no está asociada a una solicitud HTTP.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Http::HttpContext ^ GetHttpContext(Microsoft::AspNetCore::SignalR::HubConnectionContext ^ connection);
public static Microsoft.AspNetCore.Http.HttpContext GetHttpContext (this Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
public static Microsoft.AspNetCore.Http.HttpContext? GetHttpContext (this Microsoft.AspNetCore.SignalR.HubConnectionContext connection);
static member GetHttpContext : Microsoft.AspNetCore.SignalR.HubConnectionContext -> Microsoft.AspNetCore.Http.HttpContext
<Extension()>
Public Function GetHttpContext (connection As HubConnectionContext) As HttpContext

Parámetros

connection
HubConnectionContext

La conexión.

Devoluciones

para HttpContext la conexión o null si la conexión no está asociada a una solicitud HTTP.

Se aplica a