lang/csharp/app-bank-examples/Grpc/UserGrpc.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(AppUserServiceBase serviceImpl)
    {
      return grpc::ServerServiceDefinition.CreateBuilder()
          .AddMethod(__Method_signInAppUser, serviceImpl.signInAppUser)
          .AddMethod(__Method_createTx, serviceImpl.createTx)
          .AddMethod(__Method_sendTx, serviceImpl.sendTx)
          .AddMethod(__Method_getBalance, serviceImpl.getBalance)
          .AddMethod(__Method_withdraw, serviceImpl.withdraw)
          .AddMethod(__Method_createUserAddress, serviceImpl.createUserAddress).Build();
    }
public static grpc :: ServerServiceDefinition BindService ( AppUserServiceBase serviceImpl ) { return grpc :: ServerServiceDefinition . CreateBuilder ( ) . AddMethod ( __Method_signInAppUser , serviceImpl . signInAppUser ) . AddMethod ( __Method_createTx , serviceImpl . createTx ) . AddMethod ( __Method_sendTx , serviceImpl . sendTx ) . AddMethod ( __Method_getBalance , serviceImpl . getBalance ) . AddMethod ( __Method_withdraw , serviceImpl . withdraw ) . AddMethod ( __Method_createUserAddress , serviceImpl . createUserAddress ) . Build ( ) ; }
Creates service definition that can be registered with a server
Creates service definition that can be registered with a server
serviceImpl
AppUserServiceBase
An object implementing the server-side handling logic.
An object implementing the server - side handling logic .