Struct CallInvocationDetails<TRequest, TResponse>

public struct CallInvocationDetails<TRequest, TResponse>

Details about a client-side call to be invoked.

Namespace

Grpc.Core

Assembly

Grpc.Core.dll

Type Parameters

NameDescription
TRequest

Request message type for the call.

TResponse

Response message type for the call.

Constructors

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

public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, CallOptions options)

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

Parameters
TypeNameDescription
Channelchannel

Channel to use for this call.

Method<TRequest, TResponse>method

Method to call.

CallOptionsoptions

Call options.

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

public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, string host, CallOptions options)

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

Parameters
TypeNameDescription
Channelchannel

Channel to use for this call.

Method<TRequest, TResponse>method

Method to call.

Stringhost

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

CallOptionsoptions

Call options.

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

public CallInvocationDetails(Channel channel, string method, string host, Marshaller<TRequest> requestMarshaller, Marshaller<TResponse> responseMarshaller, CallOptions options)

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

Parameters
TypeNameDescription
Channelchannel

Channel to use for this call.

Stringmethod

Qualified method name.

Stringhost

Host that contains the method.

Marshaller<TRequest>requestMarshaller

Request marshaller.

Marshaller<TResponse>responseMarshaller

Response marshaller.

CallOptionsoptions

Call options.

Properties

Channel

public Channel Channel { get; }

Get channel associated with this call.

Property Value
TypeDescription
Channel

Host

public string Host { get; }

Get name of host.

Property Value
TypeDescription
String

Method

public string Method { get; }

Gets name of method to be called.

Property Value
TypeDescription
String

Options

public CallOptions Options { get; }

Gets the call options.

Property Value
TypeDescription
CallOptions

RequestMarshaller

public Marshaller<TRequest> RequestMarshaller { get; }

Gets marshaller used to serialize requests.

Property Value
TypeDescription
Marshaller<TRequest>

ResponseMarshaller

public Marshaller<TResponse> ResponseMarshaller { get; }

Gets marshaller used to deserialized responses.

Property Value
TypeDescription
Marshaller<TResponse>

Methods

WithOptions(CallOptions)

public CallInvocationDetails<TRequest, TResponse> WithOptions(CallOptions options)

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

Parameter
TypeNameDescription
CallOptionsoptions
Returns
TypeDescription
CallInvocationDetails<TRequest, TResponse>