Click or drag to resize
MethodTRequest, TResponse Constructor
Initializes a new instance of the Method class.

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public Method(
	MethodType type,
	string serviceName,
	string name,
	Marshaller<TRequest> requestMarshaller,
	Marshaller<TResponse> responseMarshaller
)

Parameters

type
Type: Grpc.CoreMethodType
Type of method.
serviceName
Type: SystemString
Name of service this method belongs to.
name
Type: SystemString
Unqualified name of the method.
requestMarshaller
Type: Grpc.CoreMarshallerTRequest
Marshaller used for request messages.
responseMarshaller
Type: Grpc.CoreMarshallerTResponse
Marshaller used for response messages.
See Also