#include "StorageAsync.h"
bool ActionPass(Windows::Foundation::IAsyncAction^ action)
{
try {
return TaskHandler<bool>([&]() {
return concurrency::create_task(action).then([]() {
return true;
});
}, false);
}
catch (...) {
return false;
}
}
bool ExecuteTask(Windows::Foundation::IAsyncAction^ action)
{
return ActionPass(action);
};