public struct CallInvocationDetails<TRequest, TResponse>
Details about a client-side call to be invoked.
Namespace
Grpc.CoreAssembly
Grpc.Core.dll
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)
public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, CallOptions options)
Initializes a new instance of the CallInvocationDetails<TRequest, TResponse> struct.
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)
public CallInvocationDetails(Channel channel, Method<TRequest, TResponse> method, string host, CallOptions options)
Initializes a new instance of the CallInvocationDetails<TRequest, TResponse> struct.
Type | Name | Description |
---|---|---|
Channel | channel | Channel to use for this call. |
Method<TRequest, TResponse> | method | Method to call. |
String | host | Host that contains the method. if |
CallOptions | options | 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.
Type | Name | Description |
---|---|---|
Channel | channel | Channel to use for this call. |
String | method | Qualified method name. |
String | host | Host that contains the method. |
Marshaller<TRequest> | requestMarshaller | Request marshaller. |
Marshaller<TResponse> | responseMarshaller | Response marshaller. |
CallOptions | options | Call options. |
Properties
Channel
public Channel Channel { get; }
Get channel associated with this call.
Type | Description |
---|---|
Channel |
Host
public string Host { get; }
Get name of host.
Type | Description |
---|---|
String |
Method
public string Method { get; }
Gets name of method to be called.
Type | Description |
---|---|
String |
Options
public CallOptions Options { get; }
Gets the call options.
Type | Description |
---|---|
CallOptions |
RequestMarshaller
public Marshaller<TRequest> RequestMarshaller { get; }
Gets marshaller used to serialize requests.
Type | Description |
---|---|
Marshaller<TRequest> |
ResponseMarshaller
public Marshaller<TResponse> ResponseMarshaller { get; }
Gets marshaller used to deserialized responses.
Type | Description |
---|---|
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.
Type | Name | Description |
---|---|---|
CallOptions | options |
Type | Description |
---|---|
CallInvocationDetails<TRequest, TResponse> |