Example #1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, AnswerRecordsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListAnswerRecords, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.ListAnswerRecordsRequest, global::Google.Cloud.Dialogflow.V2.ListAnswerRecordsResponse>(serviceImpl.ListAnswerRecords));
     serviceBinder.AddMethod(__Method_UpdateAnswerRecord, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.V2.UpdateAnswerRecordRequest, global::Google.Cloud.Dialogflow.V2.AnswerRecord>(serviceImpl.UpdateAnswerRecord));
 }
Example #2
0
 public static grpc::ServerServiceDefinition BindService(AnswerRecordsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListAnswerRecords, serviceImpl.ListAnswerRecords)
            .AddMethod(__Method_UpdateAnswerRecord, serviceImpl.UpdateAnswerRecord).Build());
 }