public class Method<TRequest, TResponse> : IMethod
A description of a remote method.
Implements
IMethodNamespace
Grpc.CoreAssembly
Grpc.Core.Api.dll
Type Parameters
TRequest
Request message type for this method.
TResponse
Response message type for this method.
Constructors
Method(MethodType, string, string, Marshaller<TRequest>, Marshaller<TResponse>)
public
Method
(
MethodType
type
,
string
serviceName
,
string
name
,
Marshaller<TRequest>
requestMarshaller
,
Marshaller<TResponse>
responseMarshaller
)
Initializes a new instance of the Method
class.
type
serviceName
name
requestMarshaller
responseMarshaller
Properties
FullName
public string FullName { get; }
Gets the fully qualified name of the method. On the server side, methods are dispatched based on this name.
Name
public string Name { get; }
Gets the unqualified name of the method.
RequestMarshaller
public Marshaller<TRequest> RequestMarshaller { get; }
Gets the marshaller used for request messages.
ResponseMarshaller
public Marshaller<TResponse> ResponseMarshaller { get; }
Gets the marshaller used for response messages.
ServiceName
public string ServiceName { get; }
Gets the name of the service to which this method belongs.
Type
public MethodType Type { get; }
Gets the type of the method.

