mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-09 09:46:10 +00:00
Replace MaxTimeout usage with Timeout, update Timeout to be a TimeSpan type (#19875)
This commit is contained in:
@@ -231,7 +231,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -315,9 +315,9 @@ namespace Org.OpenAPITools.Client
|
||||
public virtual IDictionary<string, string> DefaultHeaders { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the HTTP timeout (milliseconds) of ApiClient. Default to 100000 milliseconds.
|
||||
/// Gets or sets the HTTP timeout of ApiClient. Defaults to 100 seconds.
|
||||
/// </summary>
|
||||
public virtual int Timeout { get; set; }
|
||||
public virtual TimeSpan Timeout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the proxy
|
||||
|
||||
@@ -71,10 +71,10 @@ namespace Org.OpenAPITools.Client
|
||||
string TempFolderPath { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the HTTP connection timeout (in milliseconds)
|
||||
/// Gets the HTTP connection timeout.
|
||||
/// </summary>
|
||||
/// <value>HTTP connection timeout.</value>
|
||||
int Timeout { get; }
|
||||
TimeSpan Timeout { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the proxy.
|
||||
|
||||
Reference in New Issue
Block a user