Skip to content

VSTHRD002 doesn't trigger when configure await is used #1354

@baywet

Description

@baywet

Bug description

Whenever ConfigureAwait is in use, some rules do not trigger.

Repro steps

using var client = new HttpClient();
var response = client.GetStringAsync("https://httpbin.org/headers").ConfigureAwait(false).GetAwaiter().GetResult();

Does not trigger.

Expected behavior

Rule to trigger when ConfigureAwait is in use

Actual behavior

What happened instead of what you expected.

  • Version used: 17.11.20
  • Application (if applicable):

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions