CachedFoundryToolCatalog.GetUserContextAsync(CancellationToken) 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.
Gets the user context for the current request. Derived classes may override this to provide custom user resolution. Default implementation returns null.
protected virtual System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Tools.Models.UserInfo?> GetUserContextAsync(System.Threading.CancellationToken cancellationToken);
abstract member GetUserContextAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Tools.Models.UserInfo>
override this.GetUserContextAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Core.Tools.Models.UserInfo>
Protected Overridable Function GetUserContextAsync (cancellationToken As CancellationToken) As Task(Of UserInfo)
Parameters
- cancellationToken
- CancellationToken