AgentSkillResource.ReadAsync(IServiceProvider, 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.
Reads the resource content asynchronously.
public abstract System.Threading.Tasks.Task<object?> ReadAsync(IServiceProvider? serviceProvider = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : IServiceProvider * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
Public MustOverride Function ReadAsync (Optional serviceProvider As IServiceProvider = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)
Parameters
- serviceProvider
- IServiceProvider
Optional service provider for dependency injection.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The resource content.