-
Notifications
You must be signed in to change notification settings - Fork 329
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
Adding & enhancing client apis over gRPC #244
Conversation
This reverts commit ea5dc12.
test/Dapr.AspNetCore.IntegrationTest/AppWebApplicationFactory.cs
Outdated
Show resolved
Hide resolved
src/Dapr.Client/DaprClientBuilder.cs
Outdated
} | ||
else | ||
{ | ||
channel = GrpcChannel.ForAddress(this.daprEndpoint, this.gRPCChannelOptions); |
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.
Could do:
channel = GrpcChannel.ForAddress(this.daprEndpoint, this.gRPCChannelOptions ?? new GrpcChannelOptions());
@@ -59,6 +59,13 @@ public abstract class DaprClient | |||
/// <param name="metadata">A key/value pair to pass to the method to invoke.</param> | |||
/// <param name="cancellationToken">A <see cref="CancellationToken" /> that can be used to cancel the operation.</param> | |||
/// <returns>A <see cref="Task" /> that will complete when the operation has completed.</returns> | |||
/// <remarks>If the target service is listening on http, a key value pair of http.verb and the verb must be added to the metadata parameter. | |||
/// For example: |
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.
<example>
@@ -223,7 +226,7 @@ public async ValueTask<StateEntry<TValue>> GetStateEntryAsync<TValue>(string sto | |||
public abstract ValueTask<bool> TryDeleteStateAsync( | |||
string storeName, | |||
string key, | |||
ETag etag, | |||
string etag, |
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 don't have a big objection to this, but the rationale for making ETag its own type is to make it clear to users that they should not try to guess a good value for an etag. Making it a simple string makes it appear like something users can create.
@rynowak Could you please approve it again, addressing some of the review comments resetted the review. |
Summary of Changes:
It will close multiple issues:
#226
#225
#224
#223
#243
#221
#142