|
|
|
@ -4,13 +4,13 @@ |
|
|
|
|
// </auto-generated> |
|
|
|
|
// Original file comments: |
|
|
|
|
// Copyright 2015-2016 gRPC authors. |
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
|
// You may obtain a copy of the License at |
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0 |
|
|
|
|
// |
|
|
|
|
// |
|
|
|
|
// Unless required by applicable law or agreed to in writing, software |
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS, |
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
|
|
@ -539,20 +539,20 @@ namespace Grpc.Testing { |
|
|
|
|
.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. |
|
|
|
|
/// <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, TestServiceBase serviceImpl) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_EmptyCall, serviceImpl.EmptyCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnaryCall, serviceImpl.UnaryCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_CacheableUnaryCall, serviceImpl.CacheableUnaryCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingOutputCall, serviceImpl.StreamingOutputCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingInputCall, serviceImpl.StreamingInputCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_FullDuplexCall, serviceImpl.FullDuplexCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_HalfDuplexCall, serviceImpl.HalfDuplexCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_EmptyCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(serviceImpl.EmptyCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnaryCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.UnaryCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_CacheableUnaryCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.SimpleRequest, global::Grpc.Testing.SimpleResponse>(serviceImpl.CacheableUnaryCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingOutputCall, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(serviceImpl.StreamingOutputCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingInputCall, serviceImpl == null ? null : new grpc::ClientStreamingServerMethod<global::Grpc.Testing.StreamingInputCallRequest, global::Grpc.Testing.StreamingInputCallResponse>(serviceImpl.StreamingInputCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_FullDuplexCall, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(serviceImpl.FullDuplexCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_HalfDuplexCall, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod<global::Grpc.Testing.StreamingOutputCallRequest, global::Grpc.Testing.StreamingOutputCallResponse>(serviceImpl.HalfDuplexCall)); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(serviceImpl.UnimplementedCall)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -677,13 +677,13 @@ namespace Grpc.Testing { |
|
|
|
|
.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall).Build(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. |
|
|
|
|
/// <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, UnimplementedServiceBase serviceImpl) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.Empty, global::Grpc.Testing.Empty>(serviceImpl.UnimplementedCall)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -804,14 +804,14 @@ namespace Grpc.Testing { |
|
|
|
|
.AddMethod(__Method_Stop, serviceImpl.Stop).Build(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. |
|
|
|
|
/// <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, ReconnectServiceBase serviceImpl) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_Start, serviceImpl.Start); |
|
|
|
|
serviceBinder.AddMethod(__Method_Stop, serviceImpl.Stop); |
|
|
|
|
serviceBinder.AddMethod(__Method_Start, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.ReconnectParams, global::Grpc.Testing.Empty>(serviceImpl.Start)); |
|
|
|
|
serviceBinder.AddMethod(__Method_Stop, serviceImpl == null ? null : new grpc::UnaryServerMethod<global::Grpc.Testing.Empty, global::Grpc.Testing.ReconnectInfo>(serviceImpl.Stop)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|