-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add optional Methods w/ CancellationToken to IStorage #9279
base: main
Are you sure you want to change the base?
Add optional Methods w/ CancellationToken to IStorage #9279
Conversation
@@ -17,7 +17,7 @@ public class CosmosGrainStorageOptions : CosmosOptions | |||
public int InitStage { get; set; } = DEFAULT_INIT_STAGE; | |||
|
|||
/// <summary> | |||
/// Gets or sets a value indicating whether state should be deleted when <see cref="IStorage.ClearStateAsync"/> is called. | |||
/// Gets or sets a value indicating whether state should be deleted when <see cref="IStorage.ClearStateAsync()"/> is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without specifying an overload we get a CS0419 (Ambiguous reference), I could just suppress the warning...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If your change here clears up the ambiguity, then it looks good to me.
/// <returns> | ||
/// A <see cref="Task"/> representing the operation. | ||
/// </returns> | ||
Task ClearStateAsync(CancellationToken cancellationToken) => Task.CompletedTask; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should call the original ClearStateAsync overload (i.e, without the CT param)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense. Pushed that change, Thanks.
9248
Microsoft Reviewers: Open in CodeFlow