I have Created a asynchronous method like below
System.Threading.Tasks.Task.Factory.StartNew(
() => AddAttachment(document, docId, user)).ContinueWith(
task => BackUpQueuesMail(task.Exception, information, list),
TaskContinuationOptions.OnlyOnFaulted);
I need to execute a callback function after AddAttachment() methods process successfully. How can i possible this?
One way would be: