lang/csharp/app-bank-examples/Grpc/DeveloperGrpc.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(DeveloperServiceBase serviceImpl)
    {
      return grpc::ServerServiceDefinition.CreateBuilder()
          .AddMethod(__Method_initSession, serviceImpl.initSession)
          .AddMethod(__Method_getBalance, serviceImpl.getBalance)
          .AddMethod(__Method_sendTxFromBank, serviceImpl.sendTxFromBank).Build();
    }
public static grpc :: ServerServiceDefinition BindService ( DeveloperServiceBase serviceImpl ) { return grpc :: ServerServiceDefinition . CreateBuilder ( ) . AddMethod ( __Method_initSession , serviceImpl . initSession ) . AddMethod ( __Method_getBalance , serviceImpl . getBalance ) . AddMethod ( __Method_sendTxFromBank , serviceImpl . sendTxFromBank ) . Build ( ) ; }
Creates service definition that can be registered with a server
Creates service definition that can be registered with a server
serviceImpl
DeveloperServiceBase
An object implementing the server-side handling logic.
An object implementing the server - side handling logic .