InvocationContext Class
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.
Per-request context for an invocation, carrying platform-resolved identifiers, forwarded client headers, and query parameters.
public sealed class InvocationContext
type InvocationContext = class
Public NotInheritable Class InvocationContext
- Inheritance
-
InvocationContext
Constructors
| Name | Description |
|---|---|
| InvocationContext(String, String, IReadOnlyDictionary<String,String>, IReadOnlyDictionary<String,StringValues>, PlatformContext) |
Initializes a new instance of InvocationContext. |
Properties
| Name | Description |
|---|---|
| ClientHeaders |
Read-only dictionary of |
| InvocationId |
The invocation ID. Sourced from the |
| PlatformContext |
Gets the platform-injected identity context for this request. Handlers use the user ID key to scope per-user state, and the SDK forwards the per-request call ID. Returns Empty when the platform headers are absent (e.g., local development). |
| QueryParameters |
Read-only dictionary of all query parameters forwarded from the caller's request. Per the invocation protocol spec, all query parameters are forwarded unchanged — containers may define additional custom parameters as part of their own contract. |
| SessionId |
The session ID. Resolved from |