public Task AlertAsync( string message, string title = null, string buttonText = null, BorderStyle?buttonStyle = null) { LogInformation("AlertAsync(\"{0}\")", message); var task = Interaction.AlertAsync( this, message, GetDefaultMessageTitle(title), buttonText, buttonStyle); task.ContinueWith(t => { if (t.Status == TaskStatus.RanToCompletion) { LogInformation("AlertAsync(\"{0}\") closed", message); } else if (t.Exception != null) { LogError("AlertAsync(\"{0}\") Exception={1}", message, t.Exception); } }); return(task); }