asizikov / AsyncSuffix

Asynchronous methods naming checker for ReSharper
http://asizikov.github.io/2015/08/02/async-suffix-resharper-plugin/
MIT License
18 stars 3 forks source link

Allow marking of custom types with an attribute to consider them "Task types". #2

Closed miniBill closed 8 years ago

miniBill commented 9 years ago

Allow marking of custom types with an attribute to consider them "Task types".

From what I observed it should be enough to add an || type.HasAnAttributeThatSaysSo() to https://github.com/asizikov/AsyncSuffix/blob/master/AsyncSuffix/Analyzer/TaskExtensions.cs#L9. Admittedly, I would not know how to implement that method.

asizikov commented 9 years ago

Sounds interesting. Could you please give me more details? What are you trying to achieve? I might consider another solution for that.

miniBill commented 9 years ago

I've got a custom IAsyncEnumerable<T> class and I would like all the methods returning that type to be named FooAsync too.

asizikov commented 9 years ago

Yup, I guess it makes sense. I like this idea, thanks.

asizikov commented 8 years ago

@miniBill well, it took me some time, but I have a working prototype:

custom async types

miniBill commented 8 years ago

Cool =)

asizikov commented 8 years ago

@miniBill and it's published now https://resharper-plugins.jetbrains.com/packages/Sizikov.AsyncSuffix/1.2.0 Give it a try and let me know how it works for you.