public static void BindService(grpc::ServiceBinderBase serviceBinder, CompanyServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateCompany, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Talent.V4Beta1.CreateCompanyRequest, global::Google.Cloud.Talent.V4Beta1.Company>(serviceImpl.CreateCompany)); serviceBinder.AddMethod(__Method_GetCompany, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Talent.V4Beta1.GetCompanyRequest, global::Google.Cloud.Talent.V4Beta1.Company>(serviceImpl.GetCompany)); serviceBinder.AddMethod(__Method_UpdateCompany, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Talent.V4Beta1.UpdateCompanyRequest, global::Google.Cloud.Talent.V4Beta1.Company>(serviceImpl.UpdateCompany)); serviceBinder.AddMethod(__Method_DeleteCompany, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Talent.V4Beta1.DeleteCompanyRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteCompany)); serviceBinder.AddMethod(__Method_ListCompanies, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Talent.V4Beta1.ListCompaniesRequest, global::Google.Cloud.Talent.V4Beta1.ListCompaniesResponse>(serviceImpl.ListCompanies)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(CompanyServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateCompany, serviceImpl.CreateCompany) .AddMethod(__Method_GetCompany, serviceImpl.GetCompany) .AddMethod(__Method_UpdateCompany, serviceImpl.UpdateCompany) .AddMethod(__Method_DeleteCompany, serviceImpl.DeleteCompany) .AddMethod(__Method_ListCompanies, serviceImpl.ListCompanies).Build()); }