Пример #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(gRPCBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SayHello, serviceImpl.SayHello)
            .AddMethod(__Method_SayHi, serviceImpl.SayHi)
            .AddMethod(__Method_simpleHello, serviceImpl.simpleHello).Build());
 }
Пример #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(gRPCBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_QueryAdv, serviceImpl.QueryAdvAsync)
            .AddMethod(__Method_UpdateAdv, serviceImpl.UpdateAdv)
            .AddMethod(__Method_InsertLog, serviceImpl.InsertLog)
            .AddMethod(__Method_InsertScreenhot, serviceImpl.InsertScreenhot).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(gRPCBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_GetEmployeeList, serviceImpl.GetEmployeeList)
            .AddMethod(__Method_GetOne, serviceImpl.GetOne)
            .AddMethod(__Method_Edit, serviceImpl.Edit)
            .AddMethod(__Method_Remove, serviceImpl.Remove).Build());
 }
Пример #4
0
 /// <summary>Register service method implementations with a service binder. 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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl.SayHello);
 }
Пример #5
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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::HZP.MQ.ClientManager.TestRequest, global::HZP.MQ.ClientManager.TestReply>(serviceImpl.SayHello));
 }
Пример #6
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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcTest.TestRequest, global::GrpcTest.TestReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_Add, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcTest.AddTarget, global::GrpcTest.SumValue>(serviceImpl.Add));
 }
Пример #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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Permission.RPC.API.HelloRequest, global::Permission.RPC.API.HelloReply>(serviceImpl.SayHello));
 }
Пример #8
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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SayHello, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GRPCDemo.HelloRequest, global::GRPCDemo.HelloReply>(serviceImpl.SayHello));
     serviceBinder.AddMethod(__Method_Add, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GRPCDemo.AddRequest, global::GRPCDemo.AddReply>(serviceImpl.Add));
 }
Пример #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, gRPCBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Deduction, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GRPCDemo.DeductionRequest, global::GRPCDemo.DeductionReply>(serviceImpl.Deduction));
     serviceBinder.AddMethod(__Method_GetInventoryQuantity, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GRPCDemo.GetInventoryQuantityRequest, global::GRPCDemo.GetInventoryQuantityReply>(serviceImpl.GetInventoryQuantity));
 }
Пример #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(gRPCBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Deduction, serviceImpl.Deduction)
            .AddMethod(__Method_GetInventoryQuantity, serviceImpl.GetInventoryQuantity).Build());
 }