Example #1
0
 public static grpc::ServerServiceDefinition BindService(TagBindingsBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_ListTagBindings, serviceImpl.ListTagBindings)
            .AddMethod(__Method_CreateTagBinding, serviceImpl.CreateTagBinding)
            .AddMethod(__Method_DeleteTagBinding, serviceImpl.DeleteTagBinding).Build());
 }
Example #2
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, TagBindingsBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_ListTagBindings, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.ResourceManager.V3.ListTagBindingsRequest, global::Google.Cloud.ResourceManager.V3.ListTagBindingsResponse>(serviceImpl.ListTagBindings));
     serviceBinder.AddMethod(__Method_CreateTagBinding, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.ResourceManager.V3.CreateTagBindingRequest, global::Google.LongRunning.Operation>(serviceImpl.CreateTagBinding));
     serviceBinder.AddMethod(__Method_DeleteTagBinding, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.ResourceManager.V3.DeleteTagBindingRequest, global::Google.LongRunning.Operation>(serviceImpl.DeleteTagBinding));
 }