IStreamLoader.LoadAsync(Uri, Uri, 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.
Use Uri to locate data and convert into an input object.
public System.Threading.Tasks.Task<System.IO.Stream> LoadAsync(Uri baseUrl, Uri uri, System.Threading.CancellationToken cancellationToken = default);
abstract member LoadAsync : Uri * Uri * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function LoadAsync (baseUrl As Uri, uri As Uri, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Stream)
Parameters
- baseUrl
- Uri
Base URL of parent to which a relative reference could be loaded.
If the uri is an absolute parameter the value of this parameter will be ignored
- uri
- Uri
Identifier of some source of an OpenAPI Description
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A data object that can be processed by a reader to generate an OpenApiDocument