public Timeout ( System.TimeSpan timeout ) : ISearchParams | ||
timeout | System.TimeSpan | The max length of time that that will be given to execute the query. |
Результат | ISearchParams |
/// <summary> /// The server side timeout allows to specify an upper boundary of request execution so that it potentially doesn't run infinitely. /// </summary> /// <param name="timeout">The max length of time that that will be given to execute the query.</param> /// <returns></returns> public SearchQuery Timeout(TimeSpan timeout) { SearchParams.Timeout(timeout); TimeoutValue = (uint)timeout.TotalMilliseconds * 1000; // convert from millis to micros return(this); }
/// <summary> /// The server side timeout allows to specify an upper boundary of request execution so that it potentially doesn't run infinitely. /// </summary> /// <param name="timeout">The max length of time that that will be given to execute the query.</param> /// <returns></returns> public SearchQuery Timeout(TimeSpan timeout) { SearchParams.Timeout(timeout); return(this); }