I use a library that have a method:
public void SendNotification(INotification notification, SendNotificationCallbackDelegate callback)
I would like to use this method like:
var result = await sender.SendNotification(...);
return result;
I would like to know if it is possible to wrap this call inside an async method that will do the internal callback wait response and then return. SendNotification is async inside ... but is based on delegate pattern.