Skip to content

Commit f59fb41

Browse files
committed
get rid of abstraction
1 parent 6a1d4fc commit f59fb41

8 files changed

Lines changed: 14 additions & 8 deletions

File tree

File renamed without changes.

src/Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
<PropertyGroup>
44
<Authors>Alexander Salamatov</Authors>
5-
<PackageProjectUrl>https://github.com/ch1seL/RedisLock</PackageProjectUrl>
5+
<PackageProjectUrl>https://github.com/ch1seL/DistributedLock</PackageProjectUrl>
66

77
<IncludeSymbols>true</IncludeSymbols>
88
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
99

1010
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111

1212
<RepositoryType>git</RepositoryType>
13-
<RepositoryUrl>https://github.com/ch1seL/RedisLock</RepositoryUrl>
13+
<RepositoryUrl>https://github.com/ch1seL/DistributedLock</RepositoryUrl>
1414
<PublishRepositoryUrl>true</PublishRepositoryUrl>
1515

1616
<EmbedUntrackedSources>true</EmbedUntrackedSources>

src/ch1seL.DistributedLock.Abstraction/DistributedLockBadStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Microsoft.Extensions.Caching.Distributed
1+
namespace Microsoft.Extensions.Caching.Distributed
22
{
33
/// <summary>
44
/// reused RedLockNet.RedLockStatus enum

src/ch1seL.DistributedLock.Abstraction/DistributedLockException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22

33
namespace Microsoft.Extensions.Caching.Distributed
44
{

src/ch1seL.DistributedLock.Abstraction/IDistributedLock.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Threading;
33
using System.Threading.Tasks;
44

src/ch1seL.DistributedLock.MemoryLock/ch1seL.DistributedLock.MemoryLock.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="ch1seL.DistributedLock.Abstraction" Version="0.1.2" />
109
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" />
1110
</ItemGroup>
1211

12+
<ItemGroup>
13+
<ProjectReference Include="..\ch1seL.DistributedLock.Abstraction\ch1seL.DistributedLock.Abstraction.csproj" />
14+
</ItemGroup>
15+
1316
</Project>

src/ch1seL.DistributedLock.RedisLock/ch1seL.DistributedLock.RedisLock.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="ch1seL.DistributedLock.Abstraction" Version="0.1.2"/>
109
<PackageReference Include="RedLock.net" Version="2.2.0"/>
1110
</ItemGroup>
1211

12+
<ItemGroup>
13+
<ProjectReference Include="..\ch1seL.DistributedLock.Abstraction\ch1seL.DistributedLock.Abstraction.csproj" />
14+
</ItemGroup>
15+
1316
</Project>

tests/ch1seL.DistributedLock.Tests/SharedTests/ThrowDistributedLockIntervalExceptionIfWaitTimeHasExpiredTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public async Task Test(Type lockServiceType)
2020
Func<Task> act = () => Task.WhenAll(TaskList);
2121

2222
var exception = await act.Should().ThrowExactlyAsync<DistributedLockException>();
23-
exception.Which.Status.Should().Be(DistributedLockBadStatus.Conflicted);
23+
exception.Which.Data["Status"].Should().Be(DistributedLockBadStatus.Conflicted);
2424
Intervals.Should().HaveCount(1);
2525
}
2626
}

0 commit comments

Comments
 (0)