Skip to content

Commit cfa0416

Browse files
committed
Update to correctly publish the latest version of SqlAppLock.Common project.
1 parent 0c3e4b5 commit cfa0416

File tree

3 files changed

+36
-20
lines changed

3 files changed

+36
-20
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
- name: Run a one-line script
2727
run: echo Executing Main Branch NuGet Publish Workflow!
2828

29+
- name: "Publish NuGet: SqlAppLockHelper.Common"
30+
uses: alirezanet/publish-nuget@v3.0.4
31+
with:
32+
# Filepath of the project to be packaged, relative to root of repository
33+
PROJECT_FILE_PATH: "SqlAppLockHelper.Common\SqlAppLockHelper.Common.csproj"
34+
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
35+
2936
- name: "Publish NuGet: SqlAppLockHelper.MicrosoftDataNS"
3037
uses: alirezanet/publish-nuget@v3.0.4
3138
with:
Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<TargetFramework>netstandard2.1</TargetFramework>
5-
<PackageId>SqlAppLockHelper.Common</PackageId>
6-
<Authors>BBernard / CajunCoding</Authors>
7-
<Company>CajunCoding</Company>
8-
<Product>SqlAppLockHelper</Product>
9-
<Description>The Common libraries for SqlAppLockHelper; a library for easily using Sql Server built in support for robust distributed mutex applicaiton locking capabilities. You should install SqlAppLockHelper.SystemData or SqlAppLockHelper.MicrosoftData depending on which SqlClient liberaries are in use in your project.</Description>
10-
<Copyright>Copyright © 2020</Copyright>
11-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
12-
<PackageProjectUrl>https://github.com/cajuncoding/SqlAppLockHelper</PackageProjectUrl>
13-
<RepositoryUrl>https://github.com/cajuncoding/SqlAppLockHelper</RepositoryUrl>
14-
<PackageTags>sp_getapplock, sp_releaseapplock, distributed-locking, distributed-lock-algorithm, app-locking, application-locking, sql, sqlserver, sql-server, sqlclient, locking, application-lock, application-lock-system, transactional-outbox-pattern, azurefunctions, azure-functions, serverless</PackageTags>
15-
<PackageReleaseNotes>- Improve stability for Disposing, removing unnecessary exception warnings as locks are released when Connections are disposed/closed. Added explicit Release() &amp; ReleaseAsync() methods, updated tests, and added Timespan for easily tracking lock time.
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<PackageId>SqlAppLockHelper.Common</PackageId>
6+
<Version>1.0.2</Version>
7+
<Authors>BBernard / CajunCoding</Authors>
8+
<Company>CajunCoding</Company>
9+
<Product>SqlAppLockHelper</Product>
10+
<Description>The Common libraries for SqlAppLockHelper; a library for easily using Sql Server built in support for robust distributed mutex applicaiton locking capabilities. You should install SqlAppLockHelper.SystemData or SqlAppLockHelper.MicrosoftData depending on which SqlClient liberaries are in use in your project.</Description>
11+
<Copyright>Copyright © 2020</Copyright>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13+
<PackageProjectUrl>https://github.com/cajuncoding/SqlAppLockHelper</PackageProjectUrl>
14+
<RepositoryUrl>https://github.com/cajuncoding/SqlAppLockHelper</RepositoryUrl>
15+
<PackageTags>sp_getapplock, sp_releaseapplock, distributed-locking, distributed-lock-algorithm, app-locking, application-locking, sql, sqlserver, sql-server, sqlclient, locking, application-lock, application-lock-system, transactional-outbox-pattern, azurefunctions, azure-functions, serverless</PackageTags>
16+
<PackageReleaseNotes>
17+
- Added automatic tracking of Lock Acquisition Wait time in addition to the actual Lock hold elapsed time so it's easy to now see how long the process actually waited in line to get the lock.
18+
- Enhnace to automatically apply Lock Acquisition Wait time to Sql Command Timeout (if not explicitly set).
19+
- This helps simplify and reduce risk of incorrect use with Sql Command timeout failing before Lock Wait period is over.
1620

17-
Prior Release Notes:
18-
- Initial release of Async/Sync support for System.Data &amp; Microsoft.Data namespace.</PackageReleaseNotes>
19-
<Version>1.0.1</Version>
20-
</PropertyGroup>
21+
Prior Release Notes:
22+
- Improve stability for Disposing, removing unnecessary exception warnings as locks are released when Connections are disposed/closed. Added explicit Release() &amp; ReleaseAsync() methods, updated tests, and added Timespan for easily tracking lock time.
23+
- Initial release of Async/Sync support for System.Data &amp; Microsoft.Data namespace.
24+
</PackageReleaseNotes>
25+
</PropertyGroup>
2126

22-
</Project>
27+
<ItemGroup>
28+
<None Include="..\README.md" Link="README.md" Pack="true" PackagePath="\" />
29+
</ItemGroup>
30+
31+
</Project>

SqlAppLockHelper.Common/SqlServerAppLock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Diagnostics;
4-
using System.Text;
53
using System.Threading.Tasks;
64

75
namespace SqlAppLockHelper
86
{
7+
#pragma warning disable S3881
98
public class SqlServerAppLock : IDisposable, IAsyncDisposable
9+
#pragma warning restore S3881
1010
{
1111
//NOTE: Using Delegates here allows this class to be independent of Microsoft.Data/System.Data
1212
// namespaces, reducing duplication.

0 commit comments

Comments
 (0)