Searched refs:propagationToken (Results 1 – 3 of 3) sorted by relevance
/external/grpc-grpc/src/csharp/Grpc.Core/ |
D | CallOptions.cs | 36 ContextPropagationToken propagationToken; field 50 …WriteOptions writeOptions = null, ContextPropagationToken propagationToken = null, CallCredentials… in CallOptions() 56 this.propagationToken = propagationToken; in CallOptions() 104 get { return this.propagationToken; } 186 public CallOptions WithPropagationToken(ContextPropagationToken propagationToken) in WithPropagationToken() 189 newOptions.propagationToken = propagationToken; in WithPropagationToken() 239 if (propagationToken != null) in Normalize() 241 if (propagationToken.Options.IsPropagateDeadline) in Normalize() 245 newOptions.deadline = propagationToken.ParentDeadline; in Normalize() 247 if (propagationToken.Options.IsPropagateCancellation) in Normalize() [all …]
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
D | CallOptionsTest.cs | 48 … var propagationToken = new ContextPropagationToken(CallSafeHandle.NullInstance, DateTime.UtcNow, in WithMethods() 50 … Assert.AreSame(propagationToken, options.WithPropagationToken(propagationToken).PropagationToken); in WithMethods() 77 …Assert.AreEqual(deadline, new CallOptions(propagationToken: propagationToken1).Normalize().Deadlin… in Normalize() 78 …ypeof(ArgumentException), () => new CallOptions(deadline: deadline, propagationToken: propagationT… in Normalize() 83 …Assert.AreEqual(token, new CallOptions(propagationToken: propagationToken2).Normalize().Cancellati… in Normalize() 84 …ArgumentException), () => new CallOptions(cancellationToken: token, propagationToken: propagationT… in Normalize()
|
D | ContextPropagationTest.cs | 74 var propagationToken = context.CreatePropagationToken(); in PropagateCancellation() 75 Assert.IsNotNull(propagationToken.ParentCall); in PropagateCancellation() 77 var callOptions = new CallOptions(propagationToken: propagationToken); in PropagateCancellation() 123 propagationToken: context.CreatePropagationToken())), ""); in PropagateDeadline() 126 … var callOptions = new CallOptions(propagationToken: context.CreatePropagationToken()); in PropagateDeadline() 148 …var callOptions = new CallOptions(propagationToken: context.CreatePropagationToken(new ContextProp… in SuppressDeadlinePropagation()
|