public class BindServiceMethodAttribute : Attribute
Specifies the location of the service bind method for a gRPC service. The bind method is typically generated code and is used to register a service's methods with the server on startup.
The bind method signature takes a ServiceBinderBase
and an optional
instance of the service base class, e.g. static void BindService(ServiceBinderBase, GreeterService)
.
Namespace
Grpc.CoreAssembly
Grpc.Core.Api.dll
Constructors
BindServiceMethodAttribute(Type, String)
public BindServiceMethodAttribute(Type bindType, string bindMethodName)
Initializes a new instance of the BindServiceMethodAttribute class.
bindType
Type
The type the service bind method is defined on.
bindMethodName
Properties
BindMethodName
public string BindMethodName { get; }
Gets the name of the service bind method.
BindType
public Type BindType { get; }
Gets the type the service bind method is defined on.
Type

