Ejemplo n.º 1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, SchemaServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_CreateSchema, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.CreateSchemaRequest, global::Google.Cloud.PubSub.V1.Schema>(serviceImpl.CreateSchema));
     serviceBinder.AddMethod(__Method_GetSchema, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.GetSchemaRequest, global::Google.Cloud.PubSub.V1.Schema>(serviceImpl.GetSchema));
     serviceBinder.AddMethod(__Method_ListSchemas, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.ListSchemasRequest, global::Google.Cloud.PubSub.V1.ListSchemasResponse>(serviceImpl.ListSchemas));
     serviceBinder.AddMethod(__Method_DeleteSchema, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.DeleteSchemaRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteSchema));
     serviceBinder.AddMethod(__Method_ValidateSchema, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.ValidateSchemaRequest, global::Google.Cloud.PubSub.V1.ValidateSchemaResponse>(serviceImpl.ValidateSchema));
     serviceBinder.AddMethod(__Method_ValidateMessage, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.PubSub.V1.ValidateMessageRequest, global::Google.Cloud.PubSub.V1.ValidateMessageResponse>(serviceImpl.ValidateMessage));
 }
Ejemplo n.º 2
0
 public static grpc::ServerServiceDefinition BindService(SchemaServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_CreateSchema, serviceImpl.CreateSchema)
            .AddMethod(__Method_GetSchema, serviceImpl.GetSchema)
            .AddMethod(__Method_ListSchemas, serviceImpl.ListSchemas)
            .AddMethod(__Method_DeleteSchema, serviceImpl.DeleteSchema)
            .AddMethod(__Method_ValidateSchema, serviceImpl.ValidateSchema)
            .AddMethod(__Method_ValidateMessage, serviceImpl.ValidateMessage).Build());
 }