-
Notifications
You must be signed in to change notification settings - Fork 11
FL0001
David Mitchell edited this page Dec 28, 2018
·
6 revisions
The only safe location from which to access AsyncWorkItem.Current
is from within a method that returns an IEnumerable<AsyncAction>
.
This analyzer flags any usages outside of that context.
- If the method in which
AsyncWorkItem.Current
takes a parameter of typeIWorkState
, this parameter will be suggested. - A new parameter of type
IWorkState
on the method in whichAsyncWorkItem.Current
will always be suggested.
Currently, this analyzer only makes suggestions when AsyncWorkItem.Current
is passed as a parameter to another method.
If AsyncWorkItem.Current
is used as the target of an assignment or in some other context, no suggestions will be provided.