CallingServerClient.DownloadStreamingAsync 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.
The DownloadStreamingAsync(Uri, HttpRange, CancellationToken) operation downloads the recording's content.
public virtual System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>> DownloadStreamingAsync (Uri sourceEndpoint, Azure.HttpRange range = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadStreamingAsync : Uri * Azure.HttpRange * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
override this.DownloadStreamingAsync : Uri * Azure.HttpRange * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.IO.Stream>>
Public Overridable Function DownloadStreamingAsync (sourceEndpoint As Uri, Optional range As HttpRange = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Stream))
Parameters
- sourceEndpoint
- Uri
Recording's content's url location.
- range
- HttpRange
If provided, only download the bytes of the content in the specified range. If not provided, download the entire content.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
A Response<T> containing the downloaded content.
Remarks
A RequestFailedException will be thrown if a failure occurs.