Beispiel #1
0
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ForwardingTargetTestServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Method1, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.Gax.Grpc.IntegrationTests.ForwardingTargetMethod1Request, global::Google.Api.Gax.Grpc.IntegrationTests.ForwardingTargetMethod1Response>(serviceImpl.Method1));
     serviceBinder.AddMethod(__Method_Method2, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Api.Gax.Grpc.IntegrationTests.ForwardingTargetMethod2Request, global::Google.Api.Gax.Grpc.IntegrationTests.ForwardingTargetMethod2Response>(serviceImpl.Method2));
 }
Beispiel #2
0
 public static grpc::ServerServiceDefinition BindService(ForwardingTargetTestServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Method1, serviceImpl.Method1)
            .AddMethod(__Method_Method2, serviceImpl.Method2).Build());
 }