FluentCache icon indicating copy to clipboard operation
FluentCache copied to clipboard

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

Open Smurf-IV opened this issue 5 years ago • 0 comments

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

Smurf-IV avatar Feb 11 '21 10:02 Smurf-IV