Show / Hide Table of Contents

    Class ContextPropagationOptions

    Options for ContextPropagationToken.

    Inheritance
    System.Object
    ContextPropagationOptions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Grpc.Core
    Assembly: Grpc.Core.Api.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 true parent call's deadline will be propagated to the child call.

    System.Boolean propagateCancellation

    If set to true parent call's cancellation token will be propagated to the child call.

    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
    Back to top Generated by DocFX