Document configuration file vs-threading.LegacyThreadSwitchingMembers.txt

This commit is contained in:
Sam Harwell 2018-08-07 10:53:51 -05:00
Родитель c68e0de3d7
Коммит f913deffcb
2 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -26,3 +26,8 @@ void Foo() {
});
}
```
## Configuration
This analyzer is configurable via the `vs-threading.LegacyThreadSwitchingMembers.txt` file.
See our [configuration](configuration.md) topic for more information.

Просмотреть файл

@ -66,3 +66,16 @@ These are identified as described below:
Properties are specified by their name, not the name of their accessors.
For example, a property should be specified by `PropertyName`, not `get_PropertyName`.
## Legacy thread switching members
Prior to Microsoft.VisualStudio.Threading, libraries provided additional ways to execute
code on the UI thread. These methods should be avoided, and code should update to using
`JoinableTaskFactory.SwitchToMainThreadAsync()` as the standard way to switch to the main
thread.
**Filename:** `vs-threading.LegacyThreadSwitchingMembers.txt`
**Line format:** `[Namespace.TypeName]::MethodName`
**Sample:** `[System.Windows.Threading.Dispatcher]::Invoke`