void WindowsStoreImpl::GetPrice()

in WindowsStore/WindowsStoreImpl.cpp [144:157]


void WindowsStoreImpl::GetPrice(WindowsStoreCallback callback, void* userData)
{
    create_task(m_storeContext->GetStoreProductForCurrentAppAsync()).then([this, callback, userData](StoreProductResult^ result)
    {
        if (result->ExtendedError.Value == S_OK)
        {
            callback(S_OK, result->Product->Price->FormattedPrice->Data(), userData);
        }
        else
        {
            callback(result->ExtendedError.Value, L"Unknown", userData);
        }
    }, task_continuation_context::get_current_winrt_context());
}