Skip to content

Commit

Permalink
Fixed Name error (missing Async suffix)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjdk committed Nov 2, 2024
1 parent a78e0b1 commit 7466589
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
*Below is the version history of [TrelloDotNet](https://github.com/rwjdk/TrelloDotNet) (An wrapper of the Trello API)*

## 1.11.4 (3rd of November 2024)
- Renamed `DownloadAttachment` to [DownloadAttachmentAsync](https://github.com/rwjdk/TrelloDotNet/wiki/DownloadAttachmentAsync)

<hr/>

## 1.11.3 (3rd of November 2024)
#### TrelloClient
- Added [GetAttachmentOnCardAsync](https://github.com/rwjdk/TrelloDotNet/wiki/GetAttachmentOnCardAsync)
Expand Down
6 changes: 3 additions & 3 deletions src/TrelloDotNet/TrelloClient.Attachments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public async Task<Attachment> AddAttachmentToCardAsync(string cardId, Attachment
/// <param name="attachmentId">Id of Attachment</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns></returns>
public async Task<Stream> DownloadAttachment(string cardId, string attachmentId, CancellationToken cancellationToken = default)
public async Task<Stream> DownloadAttachmentAsync(string cardId, string attachmentId, CancellationToken cancellationToken = default)
{
Attachment attachment = await GetAttachmentOnCardAsync(cardId, attachmentId, cancellationToken);
return await DownloadAttachment(attachment.Url, cancellationToken);
return await DownloadAttachmentAsync(attachment.Url, cancellationToken);
}

/// <summary>
Expand All @@ -121,7 +121,7 @@ public async Task<Stream> DownloadAttachment(string cardId, string attachmentId,
/// <param name="url">URL of the attachment</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns></returns>
public async Task<Stream> DownloadAttachment(string url, CancellationToken cancellationToken = default)
public async Task<Stream> DownloadAttachmentAsync(string url, CancellationToken cancellationToken = default)
{
try
{
Expand Down
2 changes: 1 addition & 1 deletion src/TrelloDotNet/TrelloDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/rwjdk/TrelloDotNet/wiki</PackageProjectUrl>
<PackageIcon>trello.png</PackageIcon>
<PackageTags>trello api rest .NET dotNet crud wrapper webhook automation</PackageTags>
<Version>1.11.3</Version>
<Version>1.11.4</Version>
<Company>RWJDK</Company>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down

0 comments on commit 7466589

Please sign in to comment.