Skip to content

PipelineContext removal #522

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

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

MindFlavor
Copy link
Contributor

This PR supersedes #508. It proposes the removal of the no longer necessary PipelineContext.

The removal simplifies a lot of code, mainly because it removes a generic. It's also more ergonomic to work with.

Note

I will follow up with another PR that makes Context immutable (by changing send). As agreed I'm keeping the PR separated for easier reviewing.

@MindFlavor MindFlavor added the Azure.Core The azure_core crate label Nov 17, 2021
Copy link
Contributor

@rylev rylev left a comment

Choose a reason for hiding this comment

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

I don't love that we are making something that was compile time checked (the inclusion of a ResourceType) be a runtime check, but it does simplify things considerably so, let's go for it.

@MindFlavor MindFlavor merged commit 7fd4c30 into Azure:main Nov 17, 2021
@MindFlavor MindFlavor deleted the remove_pipeline_context/pr branch November 17, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core The azure_core crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants