ユーザー確認で非同期削除操作を実行する必要があります。このようなもの:
public ReactiveAsyncCommand DeleteCommand { get; protected set; }
...
DeleteCommand = new ReactiveAsyncCommand();
DeleteCommand.RegisterAsyncAction(DeleteEntity);
...
private void DeleteEntity(object obj)
{
if (MessageBox.Show("Do you really want to delete this entity?", "Confirm", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
//some delete operations
}
}
問題は、MessageBox も非同期で実行されることです。ReactiveUI でユーザーに同期的に質問し、メソッドを非同期的に実行するのに最適なパターンはどれですか?