You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version Information
Version of Akka.NET? v0.2.0
Which Akka.NET Modules? Akka.Analyzers
Describe the bug
usingAkka.Actor;usingSystem.Threading.Tasks;publicsealedclassMyActor:UntypedActor{protectedoverridevoidOnReceive(objectmessage){asyncTask<int>LocalFunction(){awaitTask.Delay(10);returnmessage.ToString().Length;}// incorrect use of closuresLocalFunction().PipeTo(Context.Sender);}}
Context.Sender should get flagged by AK1001 but currently does not, even though it's equally unsafe.
The text was updated successfully, but these errors were encountered:
Aaronontheweb
changed the title
AK1001: Sender closure not detected in PipeTo when Context.Sender is used instead of this.Sender
AK1002: Sender closure not detected in PipeTo when Context.Sender is used instead of this.SenderJan 16, 2024
Aaronontheweb
changed the title
AK1002: Sender closure not detected in PipeTo when Context.Sender is used instead of this.Sender
AK1001: Sender closure not detected in PipeTo when Context.Sender is used instead of this.SenderJan 16, 2024
* AK2001: harden so rule only runs for Akka.NET v1.5.15 and later
* fixed package warning
* added failure cases for #52
* added fix to Analyzer
* Fix bad expected value
---------
Co-authored-by: Aaron Stannard <aaron@petabridge.com>
Version Information
Version of Akka.NET? v0.2.0
Which Akka.NET Modules? Akka.Analyzers
Describe the bug
Context.Sender
should get flagged byAK1001
but currently does not, even though it's equally unsafe.The text was updated successfully, but these errors were encountered: