Ejemplo n.º 1
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(CampaignGroupServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_GetCampaignGroup, serviceImpl.GetCampaignGroup)
            .AddMethod(__Method_MutateCampaignGroups, serviceImpl.MutateCampaignGroups).Build());
 }
 public static void BindService(grpc::ServiceBinderBase serviceBinder, CampaignGroupServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_MutateCampaignGroups, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V10.Services.MutateCampaignGroupsRequest, global::Google.Ads.GoogleAds.V10.Services.MutateCampaignGroupsResponse>(serviceImpl.MutateCampaignGroups));
 }