DotNetAnalyzers / AsyncUsageAnalyzers

Now superseded by Microsoft/vs-threading
https://github.com/Microsoft/vs-threading
Other
121 stars 18 forks source link

Update IncludeCancellationParameter analyzer to cache context lookups #43

Open sharwell opened 8 years ago

sharwell commented 8 years ago

Currently the analyzer checks each parameter type to see if it is a context type containing a CancellationToken property. The results of these lookups should be cached in the Analyzer instance to avoid multiple lookups for the same type.