예제 #1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, DeploymentsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListDeployments, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.ListDeploymentsRequest, global::Google.Cloud.Dialogflow.Cx.V3.ListDeploymentsResponse>(serviceImpl.ListDeployments));
     serviceBinder.AddMethod(__Method_GetDeployment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Dialogflow.Cx.V3.GetDeploymentRequest, global::Google.Cloud.Dialogflow.Cx.V3.Deployment>(serviceImpl.GetDeployment));
 }
예제 #2
0
 public static grpc::ServerServiceDefinition BindService(DeploymentsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListDeployments, serviceImpl.ListDeployments)
            .AddMethod(__Method_GetDeployment, serviceImpl.GetDeployment).Build());
 }