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 RequestOptions to Azure.Core #27149

Merged
merged 6 commits into from
Feb 24, 2022

Conversation

annelo-msft
Copy link
Member

@annelo-msft annelo-msft commented Feb 22, 2022

This is so RequestOptions can be used by Gen 1 Generated Clients and not have ambiguity in the method signature regarding which CancellationToken takes precedence, whether two CTs are joined, etc.

Fixes Azure/autorest.csharp#1666

@annelo-msft annelo-msft marked this pull request as ready for review February 22, 2022 21:45
@azure-sdk
Copy link
Collaborator

API changes have been detected in Azure.Core. You can review API changes here

@azure-sdk
Copy link
Collaborator

API changes have been detected in Azure.Core.Experimental. You can review API changes here

API changes

-     public class RequestOptions {
-         public RequestOptions();
-         public ErrorOptions ErrorOptions { get; set; }
-         public void AddPolicy(HttpPipelinePolicy policy, HttpPipelinePosition position);
-     }
-     }
- }
- namespace Azure.Core.Pipeline {
-     public static class HttpPipelineExtensions {
-         public static HttpMessage CreateMessage(this HttpPipeline pipeline, RequestOptions? options);

sdk/core/Azure.Core/src/RequestOptions.cs Outdated Show resolved Hide resolved
sdk/core/Azure.Core/src/RequestOptions.cs Outdated Show resolved Hide resolved
sdk/core/Azure.Core/src/RequestOptions.cs Show resolved Hide resolved
sdk/core/Azure.Core/src/RequestOptions.cs Outdated Show resolved Hide resolved
@azure-sdk
Copy link
Collaborator

API changes have been detected in Azure.Core. You can review API changes here

@azure-sdk
Copy link
Collaborator

API changes have been detected in Azure.Core. You can review API changes here

@annelo-msft annelo-msft merged commit c6b943c into Azure:main Feb 24, 2022
@annelo-msft annelo-msft deleted the core-requestoptions branch February 24, 2022 19:32
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.

[LLC] Move RequestOptions into Core
5 participants