Essential Kit
Loading...
Searching...
No Matches
CloudServicesUtility

Utility class for handling cloud services related operations.

Static Public Member Functions

static bool TryGetCloudAndLocalCacheValues< T > (string key, out T cloudValue, out T localCacheValue, T localCacheDefaultValue=default)
 Gets the cloud and local cache value associated with the specified key.
 

Member Function Documentation

◆ TryGetCloudAndLocalCacheValues< T >()

static bool TryGetCloudAndLocalCacheValues< T > ( string key,
out T cloudValue,
out T localCacheValue,
T localCacheDefaultValue = default )
static
Template Parameters
TSpecify the type of the value stored in cloud.
Parameters
keystring used to identify the value stored in the cloud data store.
cloudValueThe value available in Cloud storage.
localCacheValueThe value available in local cache.
localCacheDefaultValueThe default value to be used when specified key doesn't exist in local cache.
Returns

References CloudServices.GetBool(), CloudServices.GetByteArray(), CloudServices.GetDouble(), CloudServices.GetFloat(), CloudServices.GetInt(), CloudServices.GetLong(), and CloudServices.GetString().