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
{{ message }}
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.
What about adding a rule AvoidAsyncVoidInEventhandlers?
The reason for this would be to be able to tune severity separately for them.
Heuristics could be: method with two arguments of type object and assignable to EventArgs or maybe it can be figured out from climbing around the syntax tree that the method is only used for subscribing to an event.
Perhaps there could be another analyzer checking that there is try-catch surrounding all awaits.
The text was updated successfully, but these errors were encountered:
What about adding a rule
AvoidAsyncVoidInEventhandlers
?The reason for this would be to be able to tune severity separately for them.
Heuristics could be: method with two arguments of type
object
and assignable toEventArgs
or maybe it can be figured out from climbing around the syntax tree that the method is only used for subscribing to an event.Perhaps there could be another analyzer checking that there is
try-catch
surrounding all awaits.The text was updated successfully, but these errors were encountered: