/// <summary> /// /// Get file with meta data /// /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='getFileWithMetadataArgs'> /// (See model for parameter info) /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GetFileWithMetadataOKResponse> GetFileWithMetadataAsync(this IFileService operations, GetFileWithMetadataArgs getFileWithMetadataArgs = default(GetFileWithMetadataArgs), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetFileWithMetadataWithHttpMessagesAsync(getFileWithMetadataArgs, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// /// Get file with meta data /// /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='getFileWithMetadataArgs'> /// (See model for parameter info) /// </param> public static GetFileWithMetadataOKResponse GetFileWithMetadata(this IFileService operations, GetFileWithMetadataArgs getFileWithMetadataArgs = default(GetFileWithMetadataArgs)) { return(Task.Factory.StartNew(s => ((IFileService)s).GetFileWithMetadataAsync(getFileWithMetadataArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }