i have a method with the following signature that belongs to a class.
public virtual IAsyncResult DoSomething(CustomOptions options);
I am trying to figure out how exactly do i call the callback.I cannot find anywhere the event on which to give a callback method.
This is copied pretty much from MSDN:
If the method is your own, you might want to try returning a Task, which will have a ContinueWith method, that takes a block of code (Another Task) as a callback, which will run once the Task has completed.