SessionIsolationKeyProvider 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.
Provides an abstract base class for resolving session isolation keys used to scope agent sessions.
public abstract class SessionIsolationKeyProvider
type SessionIsolationKeyProvider = class
Public MustInherit Class SessionIsolationKeyProvider
- Inheritance
-
SessionIsolationKeyProvider
Remarks
Session isolation keys enable multi-tenant or multi-user scenarios by scoping agent session storage to a specific logical partition (e.g., user ID, tenant ID, or composite key). Derived classes implement the key resolution logic appropriate to their hosting environment.
When a key is unavailable or cannot be determined, implementations should return null. The consuming session store can then enforce strict behavior (throwing an exception) or fall back to unscoped storage based on its configuration.
Constructors
| Name | Description |
|---|---|
| SessionIsolationKeyProvider() | |
Methods
| Name | Description |
|---|---|
| GetSessionIsolationKeyAsync(CancellationToken) |
Asynchronously retrieves the session isolation key for the current request or execution context. |