Beispiel #1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, BatchJobServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_MutateBatchJob, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V10.Services.MutateBatchJobRequest, global::Google.Ads.GoogleAds.V10.Services.MutateBatchJobResponse>(serviceImpl.MutateBatchJob));
     serviceBinder.AddMethod(__Method_ListBatchJobResults, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V10.Services.ListBatchJobResultsRequest, global::Google.Ads.GoogleAds.V10.Services.ListBatchJobResultsResponse>(serviceImpl.ListBatchJobResults));
     serviceBinder.AddMethod(__Method_RunBatchJob, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V10.Services.RunBatchJobRequest, global::Google.LongRunning.Operation>(serviceImpl.RunBatchJob));
     serviceBinder.AddMethod(__Method_AddBatchJobOperations, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V10.Services.AddBatchJobOperationsRequest, global::Google.Ads.GoogleAds.V10.Services.AddBatchJobOperationsResponse>(serviceImpl.AddBatchJobOperations));
 }
Beispiel #2
0
 public static grpc::ServerServiceDefinition BindService(BatchJobServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_MutateBatchJob, serviceImpl.MutateBatchJob)
            .AddMethod(__Method_ListBatchJobResults, serviceImpl.ListBatchJobResults)
            .AddMethod(__Method_RunBatchJob, serviceImpl.RunBatchJob)
            .AddMethod(__Method_AddBatchJobOperations, serviceImpl.AddBatchJobOperations).Build());
 }