You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Asynchronously poll the current state of a DNS job.
1163
+
/// </summary>
1164
+
/// <param name="job">The job in the DNS service.</param>
1165
+
/// <param name="showDetails"><c>true</c> to include detailed information about the job; otherwise, <c>false</c>.</param>
1166
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> that the task will observe.</param>
1167
+
/// <param name="progress">An optional callback object to receive progress notifications. If this is <c>null</c>, no progress notifications are sent.</param>
1168
+
/// <returns>
1169
+
/// A <see cref="Task"/> object representing the asynchronous operation. When
1170
+
/// the task completes successfully, the <see cref="Task{TResult}.Result"/>
1171
+
/// property will contain a <see cref="DnsJob"/> object containing the
1172
+
/// updated state information for the job in the DNS service.
1173
+
/// </returns>
1174
+
/// <exception cref="ArgumentNullException">If <paramref name="job"/> is <c>null</c>.</exception>
1175
+
/// <exception cref="WebException">If the REST request does not return successfully.</exception>
thrownewInvalidOperationException("Could not obtain status for job");
1187
+
1188
+
returntask.Result;
1189
+
},TaskContinuationOptions.ExecuteSynchronously);
1190
+
1191
+
if(progress!=null)
1192
+
{
1193
+
chain=chain.ContinueWith(
1194
+
task =>
1195
+
{
1196
+
progress.Report(task.Result);
1197
+
returntask.Result;
1198
+
},TaskContinuationOptions.ExecuteSynchronously);
1199
+
}
1200
+
1201
+
returnchain;
1202
+
}
1203
+
1204
+
/// <summary>
1205
+
/// Asynchronously poll the current state of a DNS job.
1206
+
/// </summary>
1207
+
/// <param name="job">The job in the DNS service.</param>
1208
+
/// <param name="showDetails"><c>true</c> to include detailed information about the job; otherwise, <c>false</c>.</param>
1209
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> that the task will observe.</param>
1210
+
/// <param name="progress">An optional callback object to receive progress notifications. If this is <c>null</c>, no progress notifications are sent.</param>
1211
+
/// <returns>
1212
+
/// A <see cref="Task"/> object representing the asynchronous operation. When
1213
+
/// the task completes successfully, the <see cref="Task{TResult}.Result"/>
1214
+
/// property will contain a <see cref="DnsJob"/> object containing the
1215
+
/// updated state information for the job in the DNS service.
1216
+
/// </returns>
1217
+
/// <exception cref="ArgumentNullException">If <paramref name="job"/> is <c>null</c>.</exception>
1218
+
/// <exception cref="WebException">If the REST request does not return successfully.</exception>
0 commit comments