sample/Sample.Grpc/generated/Service2Grpc.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(Service2Base serviceImpl)
    {
      return grpc::ServerServiceDefinition.CreateBuilder()
          .AddMethod(__Method_API1, serviceImpl.API1)
          .AddMethod(__Method_API2, serviceImpl.API2).Build();
    }
public static grpc :: ServerServiceDefinition BindService ( Service2Base serviceImpl ) { return grpc :: ServerServiceDefinition . CreateBuilder ( ) . AddMethod ( __Method_API1 , serviceImpl . API1 ) . AddMethod ( __Method_API2 , serviceImpl . API2 ) . Build ( ) ; }
Creates service definition that can be registered with a server
Creates service definition that can be registered with a server
serviceImpl
Service2Base
An object implementing the server-side handling logic.
An object implementing the server - side handling logic .