Editar

Compartilhar via


PFCloudScriptExecuteFunctionAsync

Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of custom server-side functionality you can implement, and it can be used in conjunction with virtually anything.

Syntax

HRESULT PFCloudScriptExecuteFunctionAsync(  
    PFEntityHandle entityHandle,  
    const PFCloudScriptExecuteFunctionRequest* request,  
    XAsyncBlock* async  
)  

Parameters

entityHandle   PFEntityHandle

PFEntityHandle to use for authentication.

request   PFCloudScriptExecuteFunctionRequest*

Populated request object.

async   XAsyncBlock*
Inout

XAsyncBlock for the async operation.

Return value

Type: HRESULT

Result code for this API operation.

Remarks

This API is available on all platforms. Executes an Azure Function with the profile of the entity that is defined in the request. See also CloudScriptRegisterHttpFunctionAsync, CloudScriptRegisterQueuedFunctionAsync. When the asynchronous task is complete, call PFCloudScriptExecuteFunctionGetResultSize and PFCloudScriptExecuteFunctionGetResult to get the result.

Requirements

Header: PFCloudScript.h

See also

PFCloudScript members