Add possibility to configure GitHubClient timeout (#963) (#1693)

* Add possibility to configure GitHubClient timeout (#963)

A first attempt to fix the problem describe in #963 by adding a possibility
to extend the default timeout value (100s)
that is too short to be able to post assets in github release.

* Rename to SetRequestTimeout
Make comments consistent
This commit is contained in:
Philippe Miossec
2017-10-29 02:51:37 +02:00
committed by Ryan Gribble
parent 2495487608
commit c8ff57b24c
9 changed files with 93 additions and 0 deletions

View File

@@ -6,6 +6,16 @@ namespace Octokit.Reactive
{
IConnection Connection { get; }
/// <summary>
/// Set the GitHub Api request timeout.
/// Useful to set a specific timeout for lengthy operations, such as uploading release assets
/// </summary>
/// <remarks>
/// See more information here: https://technet.microsoft.com/library/system.net.http.httpclient.timeout(v=vs.110).aspx
/// </remarks>
/// <param name="timeout">The Timeout value</param>
void SetRequestTimeout(TimeSpan timeout);
IObservableAuthorizationsClient Authorization { get; }
IObservableActivitiesClient Activity { get; }
IObservableIssuesClient Issue { get; }