зеркало из https://github.com/akkadotnet/akka.net.git
Bump Akka.Analyzers from 0.2.1 to 0.2.2 (#7073)
Co-authored-by: Aaron Stannard <aaron@petabridge.com>
This commit is contained in:
Родитель
bdc46f2d13
Коммит
1b30145c91
|
@ -39,7 +39,7 @@
|
|||
<MultiNodeAdapterVersion>1.5.13</MultiNodeAdapterVersion>
|
||||
<MicrosoftLibVersion>[6.0.*,)</MicrosoftLibVersion>
|
||||
<MsExtVersion>[6.0.*,)</MsExtVersion>
|
||||
<AkkaAnalyzerVersion>0.2.1</AkkaAnalyzerVersion>
|
||||
<AkkaAnalyzerVersion>0.2.2</AkkaAnalyzerVersion>
|
||||
<AkkaPackageTags>akka;actors;actor model;Akka;concurrency</AkkaPackageTags>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -10,6 +10,7 @@ using System.Threading.Tasks;
|
|||
using Akka.Actor;
|
||||
|
||||
#pragma warning disable 1998 //async method lacks an await
|
||||
#pragma warning disable AK1003 // ReceiveAsync lacks an await
|
||||
|
||||
namespace PingPong
|
||||
{
|
||||
|
|
|
@ -77,6 +77,8 @@ namespace Akka.Tests.Actor
|
|||
|
||||
Context.SetReceiveTimeout(timeout.GetValueOrDefault());
|
||||
|
||||
#pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
|
||||
#pragma warning disable AK1003
|
||||
ReceiveAsync<ReceiveTimeout>(async _ =>
|
||||
{
|
||||
log.Info($"Received {nameof(ReceiveTimeout)}");
|
||||
|
@ -92,6 +94,8 @@ namespace Akka.Tests.Actor
|
|||
{
|
||||
log.Info($"Received {nameof(Tick)}");
|
||||
});
|
||||
#pragma warning restore AK1003
|
||||
#pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -74,10 +74,12 @@ namespace Akka.Tests.Actor
|
|||
public ResumerAsync()
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
#pragma warning disable AK1003
|
||||
ReceiveAsync<string>(s => s.StartsWith("spawn:"), async s => Sender.Tell(Context.ActorOf<ResumerAsync>(s.Substring(6))));
|
||||
ReceiveAsync<string>(s => s.Equals("spawn"), async _ => Sender.Tell(Context.ActorOf<ResumerAsync>()));
|
||||
ReceiveAsync<string>(s => s.Equals("fail"), async _ => { throw new Exception("expected"); });
|
||||
ReceiveAsync<string>(s => s.Equals("ping"), async _ => Sender.Tell("pong"));
|
||||
#pragma warning restore AK1003
|
||||
#pragma warning restore CS1998
|
||||
}
|
||||
|
||||
|
|
|
@ -429,11 +429,13 @@ namespace Akka.Tests.Dispatch
|
|||
public AsyncFailingActor()
|
||||
{
|
||||
#pragma warning disable CS1998
|
||||
#pragma warning disable AK1003
|
||||
ReceiveAsync<string>(async _ =>
|
||||
#pragma warning restore CS1998
|
||||
{
|
||||
ThrowException();
|
||||
});
|
||||
#pragma warning restore AK1003
|
||||
#pragma warning restore CS1998
|
||||
}
|
||||
|
||||
protected override void PreRestart(Exception reason, object message)
|
||||
|
|
Загрузка…
Ссылка в новой задаче