-
Notifications
You must be signed in to change notification settings - Fork 30
Home
BigBabay edited this page Nov 7, 2016
·
1 revision
Plugin for resharper, for converting code to async.
If expect type Task, but real type is int, you may wrap it to Task.FromResult
- Replace return type to Task or Task
- Rename method and overrides and base and interface from to Async
- Add using on System.Threading.Tasks
- Analize body and replce all call to another method to async version if it exists.
- Analize using of this method, if it call from async context then replace it to await. If it calls from sync context then replace to .Result or .Wait()