microsoft / microsoft/vs-threading

Analyzers support thread affinity tracking for events

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

analyzers
Dominant language
C#
Stars
1k
Forks
160
Avg merge
1d 12h
Merged PRs (30d)
28

Description

  • Attaching a handler to an event with main thread affinity should mark the handler as called from the main thread
  • Invoking an event with main thread affinity should be treated as an invocation that requires the caller to be on the main thread

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Begin by locating the analyzers that handle event-handler attachment and invocation, then trace how main-thread affinity is represented; done means attachment marks the handler as called from the main thread and invocation requires the caller to be on it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.