Skip to content
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 abstract UpdateStatus methods to OperationResult #45475

Merged
merged 8 commits into from
Aug 13, 2024

Conversation

annelo-msft
Copy link
Member

@annelo-msft annelo-msft commented Aug 12, 2024

Per feedback from @stephentoub, having an IsCompleted property on the SCM LRO abstraction without UpdateStatus leaves the abstraction incomplete, since no valid use case exists for the IsCompleted property by itself. This PR adds an abstract UpdateStatus method, similar to the API in the Azure.Core Operation type, and reimplements WaitForCompletion as a virtual method over derived types' implementations of UpdateStatus. As such, it pulls in several internal files that had originally been intended to be emitted by the generator for use by generated client subtypes, and adds tests for implemented methods.

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

System.ClientModel

@annelo-msft annelo-msft merged commit 94a3d32 into Azure:main Aug 13, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants