public static UnmanagedEventHandler CreateSendCompletedEventArgsEventHandlerDispatcher (EventHandler <SendCompletedEventArgs> handler)
{
return SafeDispatcher ( (sender, calldata, closure)
=> {
Exception exc = SendCompletedEventArgsGetError (calldata);
handler (NativeDependencyObjectHelper.FromIntPtr (closure),
(SendCompletedEventArgs)NativeDependencyObjectHelper.Lookup (calldata) ?? new SendCompletedEventArgs (calldata, exc, false));
} );
}