Class ContextPropagationOptions
Options for ContextPropagationToken.
Inheritance
System.Object
ContextPropagationOptions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public class ContextPropagationOptions
Constructors
ContextPropagationOptions(Boolean, Boolean)
Creates new context propagation options.
Declaration
public ContextPropagationOptions(bool propagateDeadline = true, bool propagateCancellation = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | propagateDeadline | If set to |
| System.Boolean | propagateCancellation | If set to |
Fields
Default
The context propagation options that will be used by default.
Declaration
public static readonly ContextPropagationOptions Default
Field Value
| Type | Description |
|---|---|
| ContextPropagationOptions |
Properties
IsPropagateCancellation
true if parent call's cancellation token should be propagated to the child call.
Declaration
public bool IsPropagateCancellation { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsPropagateDeadline
true if parent call's deadline should be propagated to the child call.
Declaration
public bool IsPropagateDeadline { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |