Class ContextPropagationOptions
Options for ContextPropagationToken.
Inheritance
System.Object
ContextPropagationOptions
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public class ContextPropagationOptions : object
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 |