public static async Task TryExecuteAsync <T>(this IMvxAsyncCommand <T> self, T parameter) { if (self.CanExecute(parameter)) { await self.ExecuteAsync(parameter); } }
public static async Task TryExecuteAsync(this IMvxAsyncCommand self) { if (self.CanExecute()) { await self.ExecuteAsync(); } }