5
Kullanıcı onayı ile senk silme işlemini yürütmem gerekiyor. Böyle bir şey:Kullanıcı onayı ile eşzamansız komut yürütme
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
}
}
sorun MessageBox çok uyumsuz yürütülür olduğunu. Kullanıcıya eşzamanlı olarak sormak ve sonra yöntemi eşzamansız olarak yürütmek için ReactiveUI'deki en iyi model hangisidir?