예제 #1
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcServiceExample.HelloRequest, global::GrpcServiceExample.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_SayClientStreamingHello, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::GrpcServiceExample.HelloRequest, global::GrpcServiceExample.HelloReply>(serviceImpl.SayClientStreamingHello));
     serviceBinder.AddMethod(__Method_SayServerStreamingHello, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::GrpcServiceExample.HelloRequest, global::GrpcServiceExample.HelloReply>(serviceImpl.SayServerStreamingHello));
     serviceBinder.AddMethod(__Method_SayBiDirectionalStreamingHello, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GrpcServiceExample.HelloRequest, global::GrpcServiceExample.HelloReply>(serviceImpl.SayBiDirectionalStreamingHello));
 }
예제 #2
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SendPCList, serviceImpl.SendPCList)
            .AddMethod(__Method_CreateRoom, serviceImpl.CreateRoom).Build());
 }
예제 #3
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_LotsOfReplies, serviceImpl.LotsOfReplies)
            .AddMethod(__Method_PingPongHello, serviceImpl.PingPongHello).Build());
 }
예제 #4
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcServiceDemo.HelloRequest, global::GrpcServiceDemo.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_StreamingServer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::GrpcServiceDemo.HelloRequest, global::GrpcServiceDemo.HelloReply>(serviceImpl.StreamingServer));
     serviceBinder.AddMethod(__Method_StreamingClient, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::GrpcServiceDemo.HelloRequest, global::GrpcServiceDemo.HelloReply>(serviceImpl.StreamingClient));
     serviceBinder.AddMethod(__Method_StreamingWays, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GrpcServiceDemo.HelloRequest, global::GrpcServiceDemo.HelloReply>(serviceImpl.StreamingWays));
 }
예제 #5
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHelloAgain, serviceImpl.SayHelloAgain)
            .AddMethod(__Method_ProcessData, serviceImpl.ProcessData).Build());
 }
예제 #6
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_FactorialSequence, serviceImpl.FactorialSequence)
            .AddMethod(__Method_RPNCalc, serviceImpl.RPNCalc).Build());
 }
예제 #7
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::StreamTest.HelloRequest, global::StreamTest.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_SaveAll, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::StreamTest.SaveAllRequest, global::StreamTest.SaveAllReply>(serviceImpl.SaveAll));
     serviceBinder.AddMethod(__Method_GetAll, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::StreamTest.GetAllRequest, global::StreamTest.GetAllReply>(serviceImpl.GetAll));
     serviceBinder.AddMethod(__Method_ReadySetGo, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::StreamTest.RaceMessage, global::StreamTest.RaceMessage>(serviceImpl.ReadySetGo));
 }
예제 #8
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_GetPersonById, serviceImpl.GetPersonById)
            .AddMethod(__Method_GetProjects, serviceImpl.GetProjects).Build());
 }
예제 #9
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayBye, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Greet.ByeRequest, global::Greet.ByeReply>(serviceImpl.SayBye));
     serviceBinder.AddMethod(__Method_BeStreaming, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Greet.StreamRequest, global::Greet.StreamResponse>(serviceImpl.BeStreaming));
     serviceBinder.AddMethod(__Method_ServerStreaming, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::Greet.HelloRequest, global::Greet.StreamResponse>(serviceImpl.ServerStreaming));
     serviceBinder.AddMethod(__Method_ClientStreaming, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::Greet.StreamRequest, global::Greet.HelloReply>(serviceImpl.ClientStreaming));
 }
예제 #10
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_getAllCustomer, serviceImpl.getAllCustomer)
            .AddMethod(__Method_getCustomerById, serviceImpl.getCustomerById).Build());
 }
예제 #11
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHellos, serviceImpl.SayHellos)
            .AddMethod(__Method_SayHelloMoreTime, serviceImpl.SayHelloMoreTime).Build());
 }
예제 #12
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SaveAll, serviceImpl.SaveAll)
            .AddMethod(__Method_GetAll, serviceImpl.GetAll)
            .AddMethod(__Method_ReadySetGo, serviceImpl.ReadySetGo).Build());
 }
예제 #13
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_UnaryCall, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.ExampleRequest, global::GrpcGreeter.ExampleResponse>(serviceImpl.UnaryCall));
     serviceBinder.AddMethod(__Method_StreamingFromServer, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::GrpcGreeter.ExampleRequest, global::GrpcGreeter.ExampleResponse>(serviceImpl.StreamingFromServer));
     serviceBinder.AddMethod(__Method_StreamingFromClient, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::GrpcGreeter.ExampleRequest, global::GrpcGreeter.ExampleResponse>(serviceImpl.StreamingFromClient));
     serviceBinder.AddMethod(__Method_StreamingBothWays, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GrpcGreeter.ExampleRequest, global::GrpcGreeter.ExampleResponse>(serviceImpl.StreamingBothWays));
 }
예제 #14
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayBye, serviceImpl.SayBye)
            .AddMethod(__Method_BeStreaming, serviceImpl.BeStreaming)
            .AddMethod(__Method_ServerStreaming, serviceImpl.ServerStreaming)
            .AddMethod(__Method_ClientStreaming, serviceImpl.ClientStreaming).Build());
 }
예제 #15
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayClientStreamingHello, serviceImpl.SayClientStreamingHello)
            .AddMethod(__Method_SayServerStreamingHello, serviceImpl.SayServerStreamingHello)
            .AddMethod(__Method_SayBiDirectionalStreamingHello, serviceImpl.SayBiDirectionalStreamingHello).Build());
 }
예제 #16
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_StreamingServer, serviceImpl.StreamingServer)
            .AddMethod(__Method_StreamingClient, serviceImpl.StreamingClient)
            .AddMethod(__Method_StreamingWays, serviceImpl.StreamingWays).Build());
 }
예제 #17
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_SayHelloWithException, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHelloWithException));
     serviceBinder.AddMethod(__Method_SayHelloByServerStreaming, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHelloByServerStreaming));
     serviceBinder.AddMethod(__Method_SayHelloByClientStreaming, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHelloByClientStreaming));
     serviceBinder.AddMethod(__Method_SayHelloByDuplexStreaming, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHelloByDuplexStreaming));
 }
예제 #18
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(GreeterBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHelloAgain, serviceImpl.SayHelloAgain)
            .AddMethod(__Method_MySum, serviceImpl.MySum)
            .AddMethod(__Method_ReceiveGroupTags, serviceImpl.ReceiveGroupTags).Build());
 }
예제 #19
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHelloStreamServer, serviceImpl.SayHelloStreamServer)
            .AddMethod(__Method_SayHelloStreamClient, serviceImpl.SayHelloStreamClient)
            .AddMethod(__Method_SayHelloStreamBidirectional, serviceImpl.SayHelloStreamBidirectional).Build());
 }
예제 #20
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_CriarLivro, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Protos.CriarLivroRequest, global::Protos.LivroReply>(serviceImpl.CriarLivro));
     serviceBinder.AddMethod(__Method_AtualizarLivro, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Protos.AtualizarLivroRequest, global::Protos.LivroReply>(serviceImpl.AtualizarLivro));
     serviceBinder.AddMethod(__Method_RemoverLivro, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Protos.RemoverLivroRequest, global::Protos.LivroReply>(serviceImpl.RemoverLivro));
     serviceBinder.AddMethod(__Method_ConsultarLivroPorTitulo, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Protos.ConsultarLivroPorTituloRequest, global::Protos.LivroReply>(serviceImpl.ConsultarLivroPorTitulo));
     serviceBinder.AddMethod(__Method_ConsultarPorAnoENumero, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Protos.ConsultarPorAnoENumeroRequest, global::Protos.LivroReply>(serviceImpl.ConsultarPorAnoENumero));
 }
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_GetListMahasiswa, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.empty, global::GrpcGreeter.ListMhs>(serviceImpl.GetListMahasiswa));
     serviceBinder.AddMethod(__Method_DetailMahasiswa, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.ID, global::GrpcGreeter.Mahasiswa>(serviceImpl.DetailMahasiswa));
     serviceBinder.AddMethod(__Method_InsertMahasiswa, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.Mahasiswa, global::GrpcGreeter.Result>(serviceImpl.InsertMahasiswa));
     serviceBinder.AddMethod(__Method_EditMahasiswa, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.Mahasiswa, global::GrpcGreeter.Result>(serviceImpl.EditMahasiswa));
     serviceBinder.AddMethod(__Method_DeleteMahasiswa, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.ID, global::GrpcGreeter.Result>(serviceImpl.DeleteMahasiswa));
 }
예제 #22
0
 public static grpc::ServerServiceDefinition BindService(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHelloWithException, serviceImpl.SayHelloWithException)
            .AddMethod(__Method_SayHelloByServerStreaming, serviceImpl.SayHelloByServerStreaming)
            .AddMethod(__Method_SayHelloByClientStreaming, serviceImpl.SayHelloByClientStreaming)
            .AddMethod(__Method_SayHelloByDuplexStreaming, serviceImpl.SayHelloByDuplexStreaming).Build());
 }
예제 #23
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_CriarLivro, serviceImpl.CriarLivro)
            .AddMethod(__Method_AtualizarLivro, serviceImpl.AtualizarLivro)
            .AddMethod(__Method_RemoverLivro, serviceImpl.RemoverLivro)
            .AddMethod(__Method_ConsultarLivroPorTitulo, serviceImpl.ConsultarLivroPorTitulo)
            .AddMethod(__Method_ConsultarPorAnoENumero, serviceImpl.ConsultarPorAnoENumero).Build());
 }
 /// <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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_GetListMahasiswa, serviceImpl.GetListMahasiswa)
            .AddMethod(__Method_DetailMahasiswa, serviceImpl.DetailMahasiswa)
            .AddMethod(__Method_InsertMahasiswa, serviceImpl.InsertMahasiswa)
            .AddMethod(__Method_EditMahasiswa, serviceImpl.EditMahasiswa)
            .AddMethod(__Method_DeleteMahasiswa, serviceImpl.DeleteMahasiswa).Build());
 }
예제 #25
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::SupplierServiceGRPC.HelloRequest, global::SupplierServiceGRPC.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_SayHelloAgain, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::SupplierServiceGRPC.HelloRequest, global::SupplierServiceGRPC.HelloReply>(serviceImpl.SayHelloAgain));
     serviceBinder.AddMethod(__Method_FindAllSuppliers, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::SupplierServiceGRPC.Empty, global::SupplierServiceGRPC.PreferredSupplier>(serviceImpl.FindAllSuppliers));
     serviceBinder.AddMethod(__Method_FindAllProducts, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::SupplierServiceGRPC.Empty, global::SupplierServiceGRPC.ProductRequest>(serviceImpl.FindAllProducts));
     serviceBinder.AddMethod(__Method_FindAllPreferredSuppliers, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::SupplierServiceGRPC.Empty, global::SupplierServiceGRPC.PreferredSupplier>(serviceImpl.FindAllPreferredSuppliers));
     serviceBinder.AddMethod(__Method_FindPreferredSupplier, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::SupplierServiceGRPC.ProductRequest, global::SupplierServiceGRPC.PreferredSupplier>(serviceImpl.FindPreferredSupplier));
     serviceBinder.AddMethod(__Method_setPreferredSupplierForProduct, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::SupplierServiceGRPC.setPreferredSupplierForProductRequest, global::SupplierServiceGRPC.Empty>(serviceImpl.setPreferredSupplierForProduct));
 }
예제 #26
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHelloAgain, serviceImpl.SayHelloAgain)
            .AddMethod(__Method_FindAllSuppliers, serviceImpl.FindAllSuppliers)
            .AddMethod(__Method_FindAllProducts, serviceImpl.FindAllProducts)
            .AddMethod(__Method_FindAllPreferredSuppliers, serviceImpl.FindAllPreferredSuppliers)
            .AddMethod(__Method_FindPreferredSupplier, serviceImpl.FindPreferredSupplier)
            .AddMethod(__Method_setPreferredSupplierForProduct, serviceImpl.setPreferredSupplierForProduct).Build());
 }
예제 #27
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.HelloRequest, global::GrpcGreeter.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_AddComment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.CommentRequest, global::GrpcGreeter.BoolReply>(serviceImpl.AddComment));
     serviceBinder.AddMethod(__Method_AddPost, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.PostRequest, global::GrpcGreeter.BoolReply>(serviceImpl.AddPost));
     serviceBinder.AddMethod(__Method_DeletePost, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.IntRequest, global::GrpcGreeter.IntReply>(serviceImpl.DeletePost));
     serviceBinder.AddMethod(__Method_GetCommentById, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.IntRequest, global::GrpcGreeter.CommentReply>(serviceImpl.GetCommentById));
     serviceBinder.AddMethod(__Method_GetPostById, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.IntRequest, global::GrpcGreeter.PostReply>(serviceImpl.GetPostById));
     serviceBinder.AddMethod(__Method_GetPosts, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.IntRequest, global::GrpcGreeter.PostListReply>(serviceImpl.GetPosts));
     serviceBinder.AddMethod(__Method_UpdateComment, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.CommentRequest, global::GrpcGreeter.CommentReply>(serviceImpl.UpdateComment));
     serviceBinder.AddMethod(__Method_UpdatePost, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcGreeter.PostRequest, global::GrpcGreeter.PostReply>(serviceImpl.UpdatePost));
 }
예제 #28
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(GreeterBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_AddComment, serviceImpl.AddComment)
            .AddMethod(__Method_AddPost, serviceImpl.AddPost)
            .AddMethod(__Method_DeletePost, serviceImpl.DeletePost)
            .AddMethod(__Method_GetCommentById, serviceImpl.GetCommentById)
            .AddMethod(__Method_GetPostById, serviceImpl.GetPostById)
            .AddMethod(__Method_GetPosts, serviceImpl.GetPosts)
            .AddMethod(__Method_UpdateComment, serviceImpl.UpdateComment)
            .AddMethod(__Method_UpdatePost, serviceImpl.UpdatePost).Build());
 }
예제 #29
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Tony.FileTransfer.Server.HelloRequest, global::Tony.FileTransfer.Server.HelloReply>(serviceImpl.SayHello));
 }
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, GreeterBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Greet.HelloRequest, global::Greet.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_SayHellos, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::Greet.HelloRequest, global::Greet.HelloReply>(serviceImpl.SayHellos));
 }