I have an asynchronous method like this
public async void Method()
{
await // Long run method
}
When Im calling this method can I have a event when this Method completed?
public void CallMethod()
{
Method();
// Here I need an event once the Method() finished its process and returned.
}
Why do you need that? Do you need to wait for completion? That works like this:
If you cannot use await and really need to use an event-like pattern, use
ContinueWith. You can think of that as adding an event handler for task completion.