-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 Pipeline Types to System.ClientModel library #41085
Add Pipeline Types to System.ClientModel library #41085
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
sdk/core/System.ClientModel/src/Options/ClientPipelineOptions.cs
Outdated
Show resolved
Hide resolved
sdk/core/System.ClientModel/src/Internal/ArrayBackedPropertyBag.cs
Outdated
Show resolved
Hide resolved
sdk/core/System.ClientModel/src/Internal/ArrayBackedPropertyBag.cs
Outdated
Show resolved
Hide resolved
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 am approving the PR, but we should cleanup the ifdefs and the _writer field (issues are filed) before we GA.
Since this merged as comments were still coming in on resolved threads, if there are any outstanding comments that didn't get addressed but are important and not covered by issues in the ClientModel backlog, please feel free to file an issue to track, or also you're welcome to put up a PR into main to address targeted areas of interest! Thanks! |
|
||
public override async Task WriteToAsync(Stream stream, CancellationToken cancellation) | ||
{ | ||
if (_model is IJsonModel<T> && _options.Format == "J") |
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 think we should perhaps expose this functionality in an internal static method on MRW so that we can duplicate the logic. It will have a higher hit rate on the faster API which will be a good thing.
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.
Per offline discussion, will address in a separate PR, and thanks for raising, @m-nash!
Add basic pipeline types to the System.ClientModel library, including:
ClientPipeline
ClientPipelineOptions
PipelinePolicy
PipelineTransport
PipelineMessage
PipelineRequest
BinaryContent
A discussion of the types contained in this PR can be found in the System.ClientModel README.