Skip to content

Commit

Permalink
Enable nullable annotations for Volo.Abp.DistributedLocking.Dapr
Browse files Browse the repository at this point in the history
  • Loading branch information
realLiangshiwei committed Aug 7, 2023
1 parent 86e36cc commit 3e3d640
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<WarningsAsErrors>Nullable</WarningsAsErrors>
<RootNamespace />
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Volo.Abp.DistributedLocking.Dapr;

public class AbpDistributedLockDaprOptions
{
public string StoreName { get; set; }
public string StoreName { get; set; } = default!;

public string? Owner { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public DaprAbpDistributedLock(
DistributedLockDaprOptions = distributedLockDaprOptions.Value;
}

public async Task<IAbpDistributedLockHandle> TryAcquireAsync(
public async Task<IAbpDistributedLockHandle?> TryAcquireAsync(
string name,
TimeSpan timeout = default,
CancellationToken cancellationToken = default)
Expand Down

0 comments on commit 3e3d640

Please sign in to comment.