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

Update ClientPipelineApi, HttpMessageApi abstraction #4816

Merged
merged 16 commits into from
Oct 31, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
live1206 committed Oct 25, 2024
commit 8503e2ef05b9c51b29c987f25b532af9f83a371d
Original file line number Diff line number Diff line change
@@ -37,10 +37,10 @@ public override ValueExpression PerRetryPolicy(params ValueExpression[] argument
=> Static<ApiKeyAuthenticationPolicy>().Invoke(nameof(ApiKeyAuthenticationPolicy.CreateHeaderApiKeyPolicy), arguments).As<ApiKeyAuthenticationPolicy>();

public override InvokeMethodExpression Send(HttpMessageApi message, HttpRequestOptionsApi options)
=> Original.Invoke(nameof(ClientPipeline.Send), [message, options]);
=> Original.Invoke(nameof(ClientPipeline.Send), [message]);

public override InvokeMethodExpression SendAsync(HttpMessageApi message, HttpRequestOptionsApi options)
=> Original.Invoke(nameof(ClientPipeline.SendAsync), [message, options], true);
=> Original.Invoke(nameof(ClientPipeline.SendAsync), [message], true);

public override ClientPipelineApi ToExpression() => this;
}