Skip to content

Commit

Permalink
Add more information about continuation tokens (Azure#30995)
Browse files Browse the repository at this point in the history
Relates to Azure#28355
  • Loading branch information
heaths authored Sep 8, 2022
1 parent e811f01 commit 6f51d58
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public class AnalyzeActionsOperation : PageableOperation<AnalyzeActionsResult>,
/// </summary>
/// <param name="operationId">The ID of this operation.</param>
/// <param name="client">The client used to check for completion.</param>
/// <exception cref="ArgumentException"><paramref name="operationId"/> is an empty string or does not represent a valid continuation token from the <see cref="Id"/> property returned on the original operation.</exception>
/// <exception cref="ArgumentNullException"><paramref name="operationId"/> or <paramref name="client"/> is null.</exception>
public AnalyzeActionsOperation(string operationId, TextAnalyticsClient client)
{
Argument.AssertNotNullOrEmpty(operationId, nameof(operationId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class AnalyzeHealthcareEntitiesOperation : PageableOperation<AnalyzeHealt
/// </summary>
/// <param name="operationId">The ID of this operation.</param>
/// <param name="client">The client used to check for completion.</param>
/// <exception cref="ArgumentException"><paramref name="operationId"/> is an empty string or does not represent a valid continuation token from the <see cref="Id"/> property returned on the original operation.</exception>
/// <exception cref="ArgumentNullException"><paramref name="operationId"/> or <paramref name="client"/> is null.</exception>
public AnalyzeHealthcareEntitiesOperation(string operationId, TextAnalyticsClient client)
{
Argument.AssertNotNullOrEmpty(operationId, nameof(operationId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class ClassifyDocumentOperation : PageableOperation<ClassifyDocumentResul
/// </summary>
/// <param name="operationId">The ID of this operation.</param>
/// <param name="client">The client used to check for completion.</param>
/// <exception cref="ArgumentException"><paramref name="operationId"/> is an empty string or does not represent a valid continuation token from the <see cref="Id"/> property returned on the original operation.</exception>
/// <exception cref="ArgumentNullException"><paramref name="operationId"/> or <paramref name="client"/> is null.</exception>
public ClassifyDocumentOperation(string operationId, TextAnalyticsClient client)
{
Argument.AssertNotNullOrEmpty(operationId, nameof(operationId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace Azure.AI.TextAnalytics
{
internal class OperationContinuationToken
{
// This represents the version of the token, not the service API version. The value itself is actually arbitrary.
private const ServiceVersion LatestTokenVersion = ServiceVersion.V3_1;

private static readonly string s_latestTokenVersion = TextAnalyticsClientOptions.GetVersionString(LatestTokenVersion);

private static readonly JsonSerializerOptions s_jsonOptions = new JsonSerializerOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ public class RecognizeCustomEntitiesOperation : PageableOperation<RecognizeCusto
/// </summary>
/// <param name="operationId">The ID of this operation.</param>
/// <param name="client">The client used to check for completion.</param>
/// <exception cref="ArgumentException"><paramref name="operationId"/> is an empty string or does not represent a valid continuation token from the <see cref="Id"/> property returned on the original operation.</exception>
/// <exception cref="ArgumentNullException"><paramref name="operationId"/> or <paramref name="client"/> is null.</exception>
public RecognizeCustomEntitiesOperation(string operationId, TextAnalyticsClient client)
{
Argument.AssertNotNullOrEmpty(operationId, nameof(operationId));
Expand Down

0 comments on commit 6f51d58

Please sign in to comment.