question

andymaddison avatar image
andymaddison asked

Where is FunctionExecutionContext defined?

In your Quickstart guide for Cloudscript using Azure functions you give some sample code for a HelloWorld function.

It has the line

using PlayFab.Samples;

This namespace does not exist. Where is the class FunctionExecutionContext now defined?

CloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

You may refer to the documentation: https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/cloudscript-af-context and at the end of the page, in the Note field:

“You can download the full CloudScript using Azure Functions helper class.”

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dan Mlodecki avatar image Dan Mlodecki commented ·

Thanks for the tip and that helps.

Maybe these classes should be part of the SDK proper?

0 Likes 0 ·
Seth Du avatar image Seth Du ♦ Dan Mlodecki commented ·

We are planing to polish up the documentation, however, this class is not a necessary for the implementation and is only used in this documentation. You may consider it as reference for the usage instruction.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.