GetHttpContextExtensions.GetHttpContext Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
GetHttpContext(HubCallerContext) |
Ottiene HttpContext dalla connessione specificata o |
GetHttpContext(HubConnectionContext) |
Ottiene HttpContext dalla connessione specificata o |
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.