/// <summary>
        /// Guards the web service call.
        /// Use this to protect sections where a non-existing web connection
        /// does NOT matter.
        /// </summary>
        /// <param name="action">The action.</param>
        /// <param name="onFailure">The on failure.</param>
        /// <param name="onSuccess">The on success.</param>
        public void GuardWebServiceCall(
            SimpleAction action,
            SimpleActionFailure onFailure,
            SimpleActionSuccess onSuccess)
        {
            Debug.Assert(this != null);

            if (action != null)
            {
                try
                {
                    action();
                }
                catch (WebException x)
                {
                    LogCentral.Current.LogError(
                        string.Format(
                            @"Silently caught WebException during guarded web service call."
                            ),
                        x);

                    if (onFailure != null)
                    {
                        onFailure(x);
                    }

                    return;
                }

                if (onSuccess != null)
                {
                    onSuccess();
                }
            }
        }
		/// <summary>
		/// Guards the web service call.
		/// Use this to protect sections where a non-existing web connection
		/// does NOT matter.
		/// </summary>
		/// <param name="action">The action.</param>
		/// <param name="onFailure">The on failure.</param>
		/// <param name="onSuccess">The on success.</param>
		public void GuardWebServiceCall(
			SimpleAction action,
			SimpleActionFailure onFailure,
			SimpleActionSuccess onSuccess)
		{
			Debug.Assert(this != null);

			if (action != null)
			{
				try
				{
					action();
				}
				catch (WebException x)
				{
					LogCentral.Current.LogError(
						string.Format(
						@"Silently caught WebException during guarded web service call."
						),
						x);

					if (onFailure != null)
					{
						onFailure(x);
					}

					return;
				}

				if (onSuccess != null)
				{
					onSuccess();
				}
			}
		}
 /// <summary>
 /// Guards the web service call.
 /// Use this to protect sections where a non-existing web connection
 /// does NOT matter.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="onFailure">The on failure.</param>
 public void GuardWebServiceCall(
     SimpleAction action,
     SimpleActionFailure onFailure)
 {
     GuardWebServiceCall(action, onFailure, null);
 }
		/// <summary>
		/// Guards the web service call.
		/// Use this to protect sections where a non-existing web connection
		/// does NOT matter.
		/// </summary>
		/// <param name="action">The action.</param>
		/// <param name="onFailure">The on failure.</param>
		public void GuardWebServiceCall(
			SimpleAction action,
			SimpleActionFailure onFailure)
		{
			GuardWebServiceCall(action, onFailure, null);
		}