Proceed() public method

public Proceed ( ) : void
return void
		/// <inheritdoc />
        public override void Apply(WcfInvocation wcfInvocation)
        {
			int retries = 0;
			Random random = null;

			while (true)
			{
				try
				{
					wcfInvocation.Proceed();
					return;
				}
				catch (TimeoutException)
				{
					if (retries++ >= MaxRetries)
						throw;
				}

				if (random == null)
					random = new Random();

				PerformBackoff(retries, random);

				wcfInvocation.Refresh(false);
			};
        }
Example #2
0
        /// <inheritdoc />
        public override void Apply(WcfInvocation wcfInvocation)
        {
            int    retries = 0;
            Random random  = null;

            while (true)
            {
                try
                {
                    wcfInvocation.Proceed();
                    return;
                }
                catch (TimeoutException)
                {
                    if (retries++ >= MaxRetries)
                    {
                        throw;
                    }
                }

                if (random == null)
                {
                    random = new Random();
                }

                PerformBackoff(retries, random);

                wcfInvocation.Refresh(false);
            }
        }