IOpenApiReader.ReadAsync 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.
Async method to reads the stream and parse it into an Open API document.
public System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult> ReadAsync(System.IO.Stream input, Uri location, Microsoft.OpenApi.Reader.OpenApiReaderSettings settings, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadAsync : System.IO.Stream * Uri * Microsoft.OpenApi.Reader.OpenApiReaderSettings * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.OpenApi.Reader.ReadResult>
Public Function ReadAsync (input As Stream, location As Uri, settings As OpenApiReaderSettings, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReadResult)
Parameters
- input
- Stream
The stream input.
- location
- Uri
Location of where the document that is getting loaded is saved
- settings
- OpenApiReaderSettings
The OpenApi reader settings.
- cancellationToken
- CancellationToken
Propagates notification that an operation should be cancelled.