/// <summary> /// Gets the <see cref="TaskOutputStorage"/> for a specified <see cref="CloudTask"/>. /// </summary> /// <param name="task">The task for which to get output storage.</param> /// <param name="storageAccount">The storage account linked to the Azure Batch account.</param> /// <returns>A TaskOutputStorage for the specified task.</returns> public static TaskOutputStorage OutputStorage(this CloudTask task, CloudStorageAccount storageAccount) { if (task == null) { throw new ArgumentNullException(nameof(task)); } if (storageAccount == null) { throw new ArgumentNullException(nameof(storageAccount)); } return(new TaskOutputStorage(storageAccount, task.JobId(), task.Id)); }