Example #1
0
        private async Task CheckConnectivity(int retryCount = 1)
        {
            var r = await GetAsync <string>("/service/ping", null);

            if (r != null && r.IsSuccess)
            {
                await OnConnectivityChanged(PlatformAccess.Current.ConnectionType);
            }
            else
            {
                var waitTimeInMilliseconds = getNextWaitTime(retryCount);

                DotNetDeltas.Sleep(waitTimeInMilliseconds);

                await CheckConnectivity(++retryCount);
            }
        }
Example #2
0
 // Crypto
 public string SignString(string key, string stringToSign)
 {
     return(DotNetDeltas.SignString(key, stringToSign));
 }