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

Move Id to Operation<T> and hide CopyFromUriOperation #7068

Merged
merged 2 commits into from
Aug 1, 2019

Conversation

tg-msft
Copy link
Member

@tg-msft tg-msft commented Jul 31, 2019

Move the Id property up to Operation<T> so we don't need to expose our own CopyFromUriOperation just to provide the Id.

Removing CopyFromUriOperation is a breaking change:
Before: Use CopyFromUriOperation
After: Use Operation<long>

@KrzysztofCwalina and @pakrym -- please weigh in on whether the protected ctor is fine or we'd rather have a settable property.

/fyi @seanmcc-msft @kfarmer-msft @amnguye

/// Gets an ID representing the operation that can be used to poll for
/// the status of the LRO.
/// </summary>
public string Id => _id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto property

Copy link
Contributor

@pakrym pakrym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

and quieting down some flaky tests (Azure#7077)
@pakrym
Copy link
Contributor

pakrym commented Aug 1, 2019

please weigh in on whether the protected ctor is fine or we'd rather have a settable property.

Forcing consumers to have an ID is nice, let's see if it holds.

@tg-msft tg-msft merged commit 9602bf9 into Azure:master Aug 1, 2019
@tg-msft tg-msft deleted the operation_id branch August 1, 2019 15:37
tg-msft added a commit that referenced this pull request Aug 1, 2019
I missed the default ctor when adding Id as part of #7068
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