forked from loafle/openapi-generator-original
Replace MaxTimeout usage with Timeout, update Timeout to be a TimeSpan type (#19875)
This commit is contained in:
parent
d9229c7b9f
commit
bbccd2827f
@ -3,7 +3,7 @@
|
||||
- filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/JSONComposedSchemaTests.cs"
|
||||
sha256: e323c7e646a0ceb6d1d8f34f287175ac666fdbbe057791b45d138de3d9582666
|
||||
- filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/Api/PetApiTests.cs"
|
||||
sha256: 7dad88554fe630d25c787cae05305d302d5e34ca810aee4fa23f20055f9188e1
|
||||
sha256: b98a6043573332de4f049db50b36bce7b5fada8511769da97f6561066a0f8c5c
|
||||
- filename: "samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/linux-logo.png"
|
||||
sha256: 0a67c32728197e942b13bdda064b73793f12f5c795f1e5cf35a3adf69c973230
|
||||
# java okhttp gson test files
|
||||
|
@ -455,7 +455,7 @@ namespace {{packageName}}.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -202,7 +202,7 @@ namespace {{packageName}}.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -286,9 +286,9 @@ namespace {{packageName}}.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
|
||||
|
@ -101,10 +101,10 @@ namespace {{packageName}}.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.
|
||||
|
@ -481,7 +481,7 @@ namespace {{packageName}}.Client
|
||||
|
||||
try
|
||||
{
|
||||
if (configuration.Timeout > 0)
|
||||
if (configuration.Timeout > TimeSpan.Zero)
|
||||
{
|
||||
timeoutTokenSource = new CancellationTokenSource(configuration.Timeout);
|
||||
finalTokenSource = CancellationTokenSource.CreateLinkedTokenSource(finalToken, timeoutTokenSource.Token);
|
||||
|
@ -455,7 +455,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -137,7 +137,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -221,9 +221,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
|
||||
|
@ -72,10 +72,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.
|
||||
|
@ -455,7 +455,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -131,7 +131,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -215,9 +215,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.
|
||||
|
@ -155,7 +155,7 @@ namespace Org.OpenAPITools.Test
|
||||
{
|
||||
// set timeout to 10 seconds
|
||||
Configuration c1 = new Configuration();
|
||||
c1.Timeout = 10000;
|
||||
c1.Timeout = TimeSpan.FromSeconds(10);
|
||||
c1.UserAgent = "TEST_USER_AGENT";
|
||||
|
||||
HttpClient httpClient = new HttpClient();
|
||||
|
@ -44,7 +44,7 @@ namespace Org.OpenAPITools.Test.Api
|
||||
_petApi = new PetApi(_httpClient, new Configuration
|
||||
{
|
||||
BasePath = BasePath,
|
||||
Timeout = 10000,
|
||||
Timeout = TimeSpan.FromSeconds(10),
|
||||
UserAgent = "TEST_USER_AGENT"
|
||||
});
|
||||
|
||||
|
@ -482,7 +482,7 @@ namespace Org.OpenAPITools.Client
|
||||
|
||||
try
|
||||
{
|
||||
if (configuration.Timeout > 0)
|
||||
if (configuration.Timeout > TimeSpan.Zero)
|
||||
{
|
||||
timeoutTokenSource = new CancellationTokenSource(configuration.Timeout);
|
||||
finalTokenSource = CancellationTokenSource.CreateLinkedTokenSource(finalToken, timeoutTokenSource.Token);
|
||||
|
@ -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.
|
||||
|
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -132,7 +132,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -216,9 +216,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -321,9 +321,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -321,9 +321,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -454,7 +454,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -220,9 +220,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.
|
||||
|
@ -455,7 +455,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -321,9 +321,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -455,7 +455,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -237,7 +237,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -321,9 +321,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -454,7 +454,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -220,9 +220,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.
|
||||
|
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -232,7 +232,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -316,9 +316,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Test
|
||||
{
|
||||
// set timeout to 10 seconds
|
||||
Configuration c1 = new Configuration();
|
||||
c1.Timeout = 10000;
|
||||
c1.Timeout = TimeSpan.FromSeconds(10);
|
||||
c1.UserAgent = "TEST_USER_AGENT";
|
||||
|
||||
PetApi petApi = new PetApi(c1);
|
||||
|
@ -456,7 +456,7 @@ namespace Org.OpenAPITools.Client
|
||||
var clientOptions = new RestClientOptions(baseUrl)
|
||||
{
|
||||
ClientCertificates = configuration.ClientCertificates,
|
||||
MaxTimeout = configuration.Timeout,
|
||||
Timeout = configuration.Timeout,
|
||||
Proxy = configuration.Proxy,
|
||||
UserAgent = configuration.UserAgent,
|
||||
UseDefaultCredentials = configuration.UseDefaultCredentials,
|
||||
|
@ -232,7 +232,7 @@ namespace Org.OpenAPITools.Client
|
||||
};
|
||||
|
||||
// Setting Timeout has side effects (forces ApiClient creation).
|
||||
Timeout = 100000;
|
||||
Timeout = TimeSpan.FromSeconds(100);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -316,9 +316,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
|
||||
|
@ -102,10 +102,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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user