.net - Is there any way of decorating a method with an attribute to be executed in other thread -
is there way of decorating method in .net attribute mean method executed in other thread?
i have lot of methods execute in other thread don't want recode them again, attribute let me choose sync, async smoothly. ideas or workaround?
thanks.
the framework has no such attribute.
in case don't have recode method invoking, invoker. can use delegate create async invocation or better yet use task. make sure taking care of syncronization issues. following link contains excellent info on subject: http://www.albahari.com/threading/ and here: how create asynchronous method
Comments
Post a Comment