Show / Hide Table of Contents

Struct CallInvocationDetails<TRequest, TResponse>

Details about a client-side call to be invoked.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public struct CallInvocationDetails<TRequest, TResponse>
Type Parameters
Name Description
TRequest

Request message type for the call.

TResponse

Response message type for the call.

Constructors

CallInvocationDetails(Channel, Method<TRequest, TResponse>, CallOptions)

Initializes a new instance of the CallInvocationDetails<TRequest, TResponse> struct.

Declaration
public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, CallOptions options)
Parameters
Type Name Description
Channel channel

Channel to use for this call.

Method<TRequest, TResponse> method

Method to call.

CallOptions options

Call options.

CallInvocationDetails(Channel, Method<TRequest, TResponse>, String, CallOptions)

Initializes a new instance of the CallInvocationDetails<TRequest, TResponse> struct.

Declaration
public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, string host, CallOptions options)
Parameters
Type Name Description
Channel channel

Channel to use for this call.

Method<TRequest, TResponse> method

Method to call.

System.String host

Host that contains the method. if null, default host will be used.

CallOptions options

Call options.

CallInvocationDetails(Channel, String, String, Marshaller<TRequest>, Marshaller<TResponse>, CallOptions)

Initializes a new instance of the CallInvocationDetails<TRequest, TResponse> struct.

Declaration
public CallInvocationDetails(Channel channel, string method, string host, Marshaller<TRequest> requestMarshaller, Marshaller<TResponse> responseMarshaller, CallOptions options)
Parameters
Type Name Description
Channel channel

Channel to use for this call.

System.String method

Qualified method name.

System.String host

Host that contains the method.

Marshaller<TRequest> requestMarshaller

Request marshaller.

Marshaller<TResponse> responseMarshaller

Response marshaller.

CallOptions options

Call options.

Properties

Channel

Get channel associated with this call.

Declaration
public Channel Channel { get; }
Property Value
Type Description
Channel

Host

Get name of host.

Declaration
public string Host { get; }
Property Value
Type Description
System.String

Method

Gets name of method to be called.

Declaration
public string Method { get; }
Property Value
Type Description
System.String

Options

Gets the call options.

Declaration
public CallOptions Options { get; }
Property Value
Type Description
CallOptions

RequestMarshaller

Gets marshaller used to serialize requests.

Declaration
public Marshaller<TRequest> RequestMarshaller { get; }
Property Value
Type Description
Marshaller<TRequest>

ResponseMarshaller

Gets marshaller used to deserialized responses.

Declaration
public Marshaller<TResponse> ResponseMarshaller { get; }
Property Value
Type Description
Marshaller<TResponse>

Methods

WithOptions(CallOptions)

Returns new instance of CallInvocationDetails<TRequest, TResponse> with Options set to the value provided. Values of all other fields are preserved.

Declaration
public CallInvocationDetails<TRequest, TResponse> WithOptions(CallOptions options)
Parameters
Type Name Description
CallOptions options
Returns
Type Description
CallInvocationDetails<TRequest, TResponse>
Back to top