Language

SessionIsolationKeyProvider Class

Definition

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.

Applies to