public static void BindService(grpc::ServiceBinderBase serviceBinder, RolesServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetRoles, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.RolesGrpc.RolesRequest, global::Proto.RolesGrpc.RolesResponse>(serviceImpl.GetRoles)); serviceBinder.AddMethod(__Method_DeleteRoles, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.RolesGrpc.RolesRequest, global::Proto.RolesGrpc.FailIdsResponse>(serviceImpl.DeleteRoles)); serviceBinder.AddMethod(__Method_UpdateRoles, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.RolesGrpc.RolesRequest, global::Proto.RolesGrpc.FailIdsResponse>(serviceImpl.UpdateRoles)); serviceBinder.AddMethod(__Method_Insert, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.RolesGrpc.RolesRequest, global::Proto.RolesGrpc.RolesResponse>(serviceImpl.Insert)); serviceBinder.AddMethod(__Method_InsertMuti, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.RolesGrpc.MutiRolesRequest, global::Proto.RolesGrpc.RolesResponse>(serviceImpl.InsertMuti)); }
public static grpc::ServerServiceDefinition BindService(RolesServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetRoles, serviceImpl.GetRoles) .AddMethod(__Method_DeleteRoles, serviceImpl.DeleteRoles) .AddMethod(__Method_UpdateRoles, serviceImpl.UpdateRoles) .AddMethod(__Method_Insert, serviceImpl.Insert) .AddMethod(__Method_InsertMuti, serviceImpl.InsertMuti).Build()); }