Skip to content

Commit

Permalink
Cancellation token (#14)
Browse files Browse the repository at this point in the history
* add cancellation token to async methods

* update delegates

* update ref
  • Loading branch information
giometrix authored Aug 30, 2023
1 parent ae10834 commit 9fa5771
Show file tree
Hide file tree
Showing 8 changed files with 1,894 additions and 1,756 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ This project builds on top of [TableStorage.Abstractions](https://github.com/Taz

## For secondary index support, check out [TableStorage.Abstractions.POCO.SecondaryIndexes](https://github.com/giometrix/TableStorage.Abstractions.POCO/tree/master/src/TableStorage.Abstractions.POCO.SecondaryIndexes)

## :bangbang: Important Note About Versioning
`TableStorage.Abstractions.POCO` uses semantic versioning. Anything changes to a major release should not be breaking, e.g. upgrading to 1.5 from 1.4 should not require a code change.

The upgrade from 3.3 to 4.0 introduces a small breaking change if you use asyncronous delegates, e.g. `OnRecordsInsertedAsync`. Most projects do not use these; however if you do, there is a minor change: you now must also accept a `CancellationToken` parameter.


## Examples
Assume we have the following two classes, which we wish to serialize to and from Azure Table Storage:

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>1.5.0.0</Version>
<Version>1.6.0.0</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>Giovanni Galbo</Authors>
<Company>Giovanni Galbo</Company>
Expand All @@ -12,9 +12,9 @@
<PackageIcon>xtensible-x.png</PackageIcon>
<RepositoryUrl>https://github.com/giometrix/TableStorage.Abstractions.POCO</RepositoryUrl>
<PackageTags>table-storage azure-table-storage poco table-entities tableentity index secondary-index</PackageTags>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
<PackageReleaseNotes>Updated packages</PackageReleaseNotes>
<FileVersion>1.5.0.0</FileVersion>
<AssemblyVersion>1.6.0.0</AssemblyVersion>
<PackageReleaseNotes>Add support for cancellation tokens</PackageReleaseNotes>
<FileVersion>1.6.0.0</FileVersion>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageProjectUrl>https://github.com/giometrix/TableStorage.Abstractions.POCO</PackageProjectUrl>
Expand All @@ -33,7 +33,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="TableStorage.Abstractions.POCO" Version="3.3.0" />
<PackageReference Include="TableStorage.Abstractions.POCO" Version="4.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 9fa5771

Please sign in to comment.