Skip to content

Add an analyzer that triggers a build warning or error if IInvocation.Proceed() is called in an async method #749

Description

@drauch

Calling IInvocation.Proceed in an async method is almost always wrong, right? If you are in an async method you are obliged to call IInvocation.CaptureProceedInfo and then call proceedInfo.Invoke instead. An analyzer would have helped us a lot and had spared us lots of debugging time.

Best regards,
D.R.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions