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

Does not appear to work with gRPC methods (or AsyncUnaryCall return types) #20

Open
Smurf-IV opened this issue Feb 11, 2021 · 0 comments

Comments

@Smurf-IV
Copy link

gRPC functions create the following style of method:
public virtual grpc::AsyncUnaryCall<global::Proto.GetLoadingConditionsReply> GetLoadingConditionsAsync(global::Proto.GetLoadingConditionsRequest request, grpc::CallOptions options)

This is added as a standard wrapper:
myRepositoryCache = FluentMemoryCache.WithSource(aClient);
aClient being the instance of the gRPC client class.

Then because the loadingCondition async API has options, I have to create a set CallOptions
var callOptions = new CallOptions().WithHeaders(metadata);

And then attempt to code the following:
image

Which you can see is causing problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant