public static grpc::ServerServiceDefinition BindService(SequenceServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateSequence, serviceImpl.CreateSequence) .AddMethod(__Method_GetSequenceReport, serviceImpl.GetSequenceReport) .AddMethod(__Method_AttemptSequence, serviceImpl.AttemptSequence).Build()); }
public static void BindService(grpc::ServiceBinderBase serviceBinder, SequenceServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateSequence, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Showcase.V1Beta1.CreateSequenceRequest, global::Google.Showcase.V1Beta1.Sequence>(serviceImpl.CreateSequence)); serviceBinder.AddMethod(__Method_GetSequenceReport, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Showcase.V1Beta1.GetSequenceReportRequest, global::Google.Showcase.V1Beta1.SequenceReport>(serviceImpl.GetSequenceReport)); serviceBinder.AddMethod(__Method_AttemptSequence, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Showcase.V1Beta1.AttemptSequenceRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.AttemptSequence)); }