2

I'm creating an in memory gRPC channel for use in testing. (This is in C#). This involves implementing a call invoker, that in turn involves implementing a server call context. One of the methods you need to implement has the following signature

protected abstract ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options);

Unfortunately, I can't see any way to create such a token. It turns out for my current purposes this isn't needed, but is there a way short of reflection to create or get such an object.

Julian Birch
  • 2,605
  • 1
  • 21
  • 36

1 Answers1

1

If it helps set context, here's the implementation in asp.net core's version - so: I wouldn't get too excited.

protected override ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options)
{
    // TODO(JunTaoLuo, JamesNK): Currently blocked on ContextPropagationToken implementation in Grpc.Core.Api
    // https://github.com/grpc/grpc-dotnet/issues/40
    throw new NotImplementedException("CreatePropagationToken will be implemented in a future version.");
}

You weren't imagining it.

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900