Property AdminPollTimeout
AdminPollTimeout
Declaration
public Nullable<TimeSpan> AdminPollTimeout { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> | Timeout to wait for completion of an admin DDL operation. If not set, the default is no timeout (infinity). |
Remarks
Method WaitForCompletionAsync(Nullable<TimeSpan>, Nullable<TimeSpan>, CancellationToken) waits for completion of an admin DDL operation by polling for the operation status at regular intervals. This property sets a timeout on the duration of the call to WaitForCompletionAsync(Nullable<TimeSpan>, Nullable<TimeSpan>, CancellationToken). Set this property to limit the duration of the polling operation. Because admin DDL operations may be potentially long running, there is no default timeout.
This property serves as a default for WaitForCompletionAsync(Nullable<TimeSpan>, Nullable<TimeSpan>, CancellationToken) if the timeout parameter is not provided.
If Timeout is not set, the value of this property is added to the the default timeout for ExecuteAdminWithCompletionAsync API because this operation already includes the polling for the operation status. If this property is not set, this operation will likewise have no timeout.