Пример #1
0
        private async Task <bool> CheckIfServerAliveAsync()
        {
            DisposeGuard();

            try
            {
                await _client.GetVersionAsync();
            }
            catch (Exception e)
            {
                OnBackgroundError(ServiceConnectionEventArgs.Error(e));
                return(false);
            }

            return(true);
        }
 public async Task <string> GetVersion()
 {
     return(await _client.GetVersionAsync());
 }