コード例 #1
0
 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();
 }
コード例 #3
0
 protected override ContextPropagationToken CreatePropagationTokenCore(ContextPropagationOptions options) =>
 throw new NotSupportedException();
コード例 #4
0
 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;