Hello,
I am working on an WPF application that uses a BusinessLogic layer (currently a single dll) in which I created my BL methods that will be called directly from the UI. Each BL manager is resolved with Unity (thinking on switching to MEF though...). BL classes implements a specific interface that have of course apropriate methods.
Now, what I want is to create (or rather to GENERATE) a new asynchronous-aspect-like assembly (or more...) that should have similar methods/operations defined as in my original assembly (the same parameters...) and also a callback delegate as a parameter. So basically I want async methods to be generated with some framework out there...
Besides the usual call to: User userBO = Resolve().Login("name", "pass"); I'd like to use something similar with: Resolve().Login("name", "pass", delegate(object, SomeArgs e) { User userBO = e.Args....};
Now, I want this assembly to be generated instead of writing new eventArgs and delegates for each method. I am aware that PostSharp could help in AOP task, but I coulnd't find anything regarding this code generation mechanism in a new dll for asynchronous methods.
Is there a way to achieve this using a third party tool or do I have to rewrite the whole async thing manually?
Any ideas are welcome. Thank you.