I think the documentation is wrong and it should be :
var dialogresult = await _dialogManager.ShowMessageAsync("Are you sure?", new[] {"Save", "Cancel"});
await _dialogManager.ShowMessageAsync(string.Format("The user clicked: {0}", dialogresult),
DialogButtons.Ok);