IsolationContext.FromRequest(HttpRequest) 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.
Reads the x-agent-user-isolation-key and x-agent-chat-isolation-key
headers from the HTTP request. Returns Empty when neither
header is present.
public static Azure.AI.AgentServer.Core.IsolationContext FromRequest(Microsoft.AspNetCore.Http.HttpRequest request);
static member FromRequest : Microsoft.AspNetCore.Http.HttpRequest -> Azure.AI.AgentServer.Core.IsolationContext
Public Shared Function FromRequest (request As HttpRequest) As IsolationContext
Parameters
- request
- HttpRequest
The HTTP request to extract headers from.
Returns
An IsolationContext with the extracted keys.