コード例 #1
0
 private void ProxyWebSession_RequestException(object sender, WebExceptionEventArgs e)
 {
     if (e.Exception.GetTroubleshootingID() == WebExceptionTroubleshootingID.ServiceUnavailable)
     {
         this.isAlive = false;
     }
 }
コード例 #2
0
        /// <summary>
        /// Raises the <see cref="IServiceClient.ExceptionReceived"/> event.
        /// </summary>
        /// <param name="args"> The event arguments. </param>
        protected virtual void OnExceptionReceived(WebExceptionEventArgs args)
        {
            var evt = ExceptionReceived;

            if (evt != null)
            {
                evt(this, args);
            }
        }