Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Factor new AsyncIteratorStateMachineAttribute into TryResolveStateMac…
Browse files Browse the repository at this point in the history
…hineMethod (#21396)
  • Loading branch information
stephentoub authored and morganbr committed Dec 14, 2018
1 parent b22b09e commit 72302cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private static bool TryResolveStateMachineMethod(ref MethodBase method, out Type
if (asma.StateMachineType == declaringType)
{
foundAttribute = true;
foundIteratorAttribute |= asma is IteratorStateMachineAttribute;
foundIteratorAttribute |= asma is IteratorStateMachineAttribute || asma is AsyncIteratorStateMachineAttribute;
}
}

Expand Down

0 comments on commit 72302cf

Please sign in to comment.