internal ContextPropagationTokenImpl(CallSafeHandle parentCall, DateTime deadline, CancellationToken cancellationToken, ContextPropagationOptions options)
 {
     this.parentCall        = GrpcPreconditions.CheckNotNull(parentCall);
     this.deadline          = deadline;
     this.cancellationToken = cancellationToken;
     this.options           = options ?? ContextPropagationOptions.Default;
 }
예제 #2
0
 protected override ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options)
 {
     throw new NotImplementedException();
 }
 protected override ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options) =>
 throw new NotSupportedException();
 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.");
 }
예제 #5
0
 protected override ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options) => null;