lang/csharp/app-bank-examples/Grpc/TsvGrpc.cs
/// <summary>Creates service definition that can be registered with a server</summary>
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
Creates service definition that can be registered with a server
Creates service definition that can be registered with a server
public static grpc::ServerServiceDefinition BindService(TSVServiceBase serviceImpl)
    {
      return grpc::ServerServiceDefinition.CreateBuilder()
          .AddMethod(__Method_versionInfo, serviceImpl.versionInfo)
          .AddMethod(__Method_getProvider, serviceImpl.getProvider)
          .AddMethod(__Method_generateKey, serviceImpl.generateKey)
          .AddMethod(__Method_bindKey, serviceImpl.bindKey)
          .AddMethod(__Method_verifyCode, serviceImpl.verifyCode).Build();
    }
public static grpc :: ServerServiceDefinition BindService ( TSVServiceBase serviceImpl ) { return grpc :: ServerServiceDefinition . CreateBuilder ( ) . AddMethod ( __Method_versionInfo , serviceImpl . versionInfo ) . AddMethod ( __Method_getProvider , serviceImpl . getProvider ) . AddMethod ( __Method_generateKey , serviceImpl . generateKey ) . AddMethod ( __Method_bindKey , serviceImpl . bindKey ) . AddMethod ( __Method_verifyCode , serviceImpl . verifyCode ) . Build ( ) ; }
Creates service definition that can be registered with a server
Creates service definition that can be registered with a server
serviceImpl
TSVServiceBase
An object implementing the server-side handling logic.
An object implementing the server - side handling logic .