<PackageReference Include="Grpc.Core.Api" Version="2.76.0-pre1" />

Grpc.Core.BindServiceMethodAttribute

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).
public string BindMethodName { get; }

Gets the name of the service bind method.

public Type BindType { get; }

Gets the type the service bind method is defined on.

public BindServiceMethodAttribute(Type bindType, string bindMethodName)

Initializes a new instance of the BindServiceMethodAttribute class.