gRPC C#
gRPC C#
Namespaces
Grpc.Core
CallOptions Structure
CallOptions Constructor
CallOptions Properties
CallOptions Methods

CallOptions Constructor

Creates a new instance of CallOptions struct.

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntax
C#
VB
C++
F#
Copy

    public CallOptions(
    	Metadata headers = null,
    	Nullable<DateTime> deadline = null,
    	CancellationToken cancellationToken = null,
    	WriteOptions writeOptions = null,
    	ContextPropagationToken propagationToken = null
    )

    Public Sub New (
    	Optional headers As Metadata = Nothing,
    	Optional deadline As Nullable(Of DateTime) = Nothing,
    	Optional cancellationToken As CancellationToken = Nothing,
    	Optional writeOptions As WriteOptions = Nothing,
    	Optional propagationToken As ContextPropagationToken = Nothing
    )

    public:
    CallOptions(
    	Metadata^ headers = nullptr,
    	Nullable<DateTime> deadline = nullptr,
    	CancellationToken cancellationToken = nullptr,
    	WriteOptions^ writeOptions = nullptr,
    	ContextPropagationToken^ propagationToken = nullptr
    )

    new :
            ?headers : Metadata *
            ?deadline : Nullable<DateTime> *
            ?cancellationToken : CancellationToken *
            ?writeOptions : WriteOptions *
            ?propagationToken : ContextPropagationToken
    (* Defaults:
            let _headers = defaultArg headers null
            let _deadline = defaultArg deadline null
            let _cancellationToken = defaultArg cancellationToken null
            let _writeOptions = defaultArg writeOptions null
            let _propagationToken = defaultArg propagationToken null
    *)
    -> CallOptions

#### Parameters

headers (Optional)
  Type: Grpc.Core
  Metadata
  Headers to be sent with the call.
deadline (Optional)
  Type: System
  Nullable
  DateTime
  Deadline for the call to finish. null means no deadline.
cancellationToken (Optional)
  Type: System.Threading
  CancellationToken
  Can be used to request cancellation of the call.
writeOptions (Optional)
  Type: Grpc.Core
  WriteOptions
  Write options that will be used for this call.
propagationToken (Optional)
  Type: Grpc.Core
  ContextPropagationToken
  Context propagation token obtained from ServerCallContext.

See Also

#### Reference

CallOptions Structure
Grpc.Core Namespace