/// <summary> /// Store a user provided IUserCalcBackoff. This interface is only valid when the DefaultHttpClient is used. /// </summary> /// <param name="calcBackoff"></param> /// <returns></returns> public virtual SmartsheetBuilder SetUserCalcBackoff(IUserCalcBackoff calcBackoff) { this.calcBackoff = calcBackoff; return(this); }
/// <summary> /// Create a DefaultCalcBackoff with a max elapsed timeout specified by the user. This interface /// is only valid when the DefaultHttpClient is used. /// </summary> /// <param name="maxRetryTimeout"></param> /// <returns></returns> public virtual SmartsheetBuilder SetMaxRetryTimeout(long maxRetryTimeout) { this.calcBackoff = new DefaultCalcBackoff(maxRetryTimeout); return(this); }