GetHttpContextExtensions.GetHttpContext Metodo

Definizione

Overload

GetHttpContext(HubCallerContext)

Ottiene HttpContext dalla connessione specificata o null se la connessione non è associata a una richiesta HTTP.

GetHttpContext(HubConnectionContext)

Ottiene HttpContext dalla connessione specificata o null se la connessione non è associata a una richiesta HTTP.

GetHttpContext(HubCallerContext)

Origine:
GetHttpContextExtensions.cs
Origine:
GetHttpContextExtensions.cs
Origine:
GetHttpContextExtensions.cs

Ottiene HttpContext dalla connessione specificata o null se la connessione non è associata a una richiesta 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

Parametri

connection
HubCallerContext

Connessione.

Restituisce

Oggetto HttpContext per la connessione o null se la connessione non è associata a una richiesta HTTP.

Si applica a

GetHttpContext(HubConnectionContext)

Origine:
GetHttpContextExtensions.cs
Origine:
GetHttpContextExtensions.cs
Origine:
GetHttpContextExtensions.cs

Ottiene HttpContext dalla connessione specificata o null se la connessione non è associata a una richiesta 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

Parametri

connection
HubConnectionContext

Connessione.

Restituisce

Oggetto HttpContext per la connessione o null se la connessione non è associata a una richiesta HTTP.

Si applica a