Removed old bucket system, cleaned up api calls. Fixed compile errors.
This commit is contained in:
@@ -6,10 +6,24 @@
|
||||
|
||||
/// <summary> The max time, in milliseconds, to wait for this request to complete. If null, a request will not time out. If a rate limit has been triggered for this request's bucket and will not be unpaused in time, this request will fail immediately. </summary>
|
||||
public int? Timeout { get; set; }
|
||||
public string BucketId { get; set; }
|
||||
public bool HeaderOnly { get; internal set; }
|
||||
|
||||
internal bool IgnoreState { get; set; }
|
||||
|
||||
public static RequestOptions CreateOrClone(RequestOptions options)
|
||||
{
|
||||
if (options == null)
|
||||
return new RequestOptions();
|
||||
else
|
||||
return options.Clone();
|
||||
}
|
||||
|
||||
public RequestOptions()
|
||||
{
|
||||
Timeout = 30000;
|
||||
}
|
||||
|
||||
public RequestOptions Clone() => MemberwiseClone() as RequestOptions;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user