Beispiel #1
0
        private bool PingService()
        {
            try
            {
                _client.Ping();
            }
            catch (Exception ex)
            {
                if (ex.Message.ToString() == "Service key has expired")
                {
                    ServiceKeyClientMessageInspector.ServiceKey = _client.GetTimeLimitedServiceKey();
                }
                else
                {
                    return(false);
                }
            }

            return(true);
        }