Download links
This SDK is generated using our open-sourced tool—SDKGenerator. We generally build SDKs every other week to stay current with the latest API changes.Key components in this SDK
This C# PlayFab SDK package consists of three different API combinations.- PlayFabClientSDK - Contains only client libraries and is designed for integration in your game client.
- PlayFabServerSDK - Contains only server and admin APIs and is designed for integration in your custom logic server or build process.
- PlayFabSDK - Contains all APIs in one SDK (client, server, and admin) and a unit-test project.
When not to use this SDK
The C# PlayFab SDK shouldn’t be used if there’s a more specific SDK that is suited for your project. Specific PlayFab SDK is available for: For a full list of the different PlayFab SDKs, see PlayFab SDK.Using the SDK
This native C# project can be used in these two ways.-
Admin tools for maintaining your game
- Usually, you want to make synchronous calls back-to-back.
- Each API call locks the program while it’s executing, but that’s not an issue for this type of program.
- See the comment about
loginTask.Wait()in the example code. This synchronizing pattern is common for API calls from tools.
-
An actual game coded in native C#
- You need to take advantage of the async nature of API calls, and the C# async/await feature keywords. For more information about asynchronous programming, see Asynchronous Programming with async and await (C#).
