Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/AsyncStateMachine/AsyncStateMachine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="NeoSmart.AsyncLock" Version="3.2.1" />
<PackageReference Include="AsyncKeyedLock" Version="7.1.3" />
<PackageReference Include="System.Reactive" Version="6.0.0" />
</ItemGroup>

</Project>
</Project>
8 changes: 4 additions & 4 deletions src/AsyncStateMachine/StateMachine.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AsyncStateMachine.Callbacks;
using AsyncKeyedLock;
using AsyncStateMachine.Callbacks;
using AsyncStateMachine.Contracts;
using NeoSmart.AsyncLock;
using System;
using System.Collections.Generic;
using System.Reactive.Subjects;
Expand All @@ -23,7 +23,7 @@ public sealed class StateMachine<TTrigger, TState> : IStateMachine<TTrigger, TSt
private readonly ICallbackFilter _filter;
private readonly ICallbackExecutor _executor;
private readonly StateMachineConfiguration<TTrigger, TState> _configuration;
private readonly AsyncLock _asyncLock;
private readonly AsyncNonKeyedLocker _asyncLock;

private TState? _currentState;
private bool _disposed;
Expand Down Expand Up @@ -60,7 +60,7 @@ internal StateMachine(StateMachineConfiguration<TTrigger, TState> configuration,
_subject = subject ?? throw new ArgumentNullException(nameof(subject));
_filter = filter ?? throw new ArgumentNullException(nameof(filter));
_executor = executor ?? throw new ArgumentNullException(nameof(executor));
_asyncLock = new AsyncLock();
_asyncLock = new AsyncNonKeyedLocker();
}

#endregion
Expand Down