Click or drag to resize
ServerCallContext Class
Context for a server-side call.
Inheritance Hierarchy
SystemObject
  Grpc.CoreServerCallContext

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public class ServerCallContext

The ServerCallContext type exposes the following members.

Properties
  NameDescription
Public propertyCancellationToken
Cancellation token signals when call is cancelled.
Public propertyDeadline
Deadline for this RPC.
Public propertyHost
Name of host called in this RPC.
Public propertyMethod
Name of method called in this RPC.
Public propertyPeer
Address of the remote endpoint in URI format.
Public propertyRequestHeaders
Initial metadata sent by client.
Public propertyResponseTrailers
Trailers to send back to client after RPC finishes.
Public propertyStatus
Status to send back to client after RPC finishes.
Public propertyWriteOptions
Allows setting write options for the following write. For streaming response calls, this property is also exposed as on IServerStreamWriter for convenience. Both properties are backed by the same underlying value.
Top
Methods
  NameDescription
Public methodCreatePropagationToken
Creates a propagation token to be used to propagate call context to a child call.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteResponseHeadersAsync
Asynchronously sends response headers for the current call to the client. This method may only be invoked once for each call and needs to be invoked before any response messages are written. Writing the first response message implicitly sends empty response headers if WriteResponseHeadersAsync haven't been called yet.
Top
See Also