Esempio n. 1
0
        /// <summary>
        /// Returns the exported file of the specified "Export To" operation of
        /// the specified report from the specified workspace.
        /// </summary>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='groupId'>
        /// The group id
        /// </param>
        /// <param name='reportId'>
        /// The report id
        /// </param>
        /// <param name='exportId'>
        /// The export id
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> GetFileOfExportToFileAsync(this IReportsOperations operations, Guid groupId, Guid reportId, string exportId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.GetFileOfExportToFileInGroupWithHttpMessagesAsync(groupId, reportId, exportId, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }