Improved ReactiveCommand.CreateFromTask
This commit is contained in:
@@ -48,9 +48,9 @@ namespace ServiceLib.ViewModels
|
||||
IP = Utils.List2String(SelectedSource.ip, true);
|
||||
Process = Utils.List2String(SelectedSource.process, true);
|
||||
|
||||
SaveCmd = ReactiveCommand.Create(() =>
|
||||
SaveCmd = ReactiveCommand.CreateFromTask(async () =>
|
||||
{
|
||||
SaveRulesAsync();
|
||||
await SaveRulesAsync();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user