|
|
|
@ -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. |
|
|
|
@ -555,6 +555,21 @@ namespace Grpc.Testing { |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method with a service binder 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> |
|
|
|
|
public static void BindService(grpc::ServiceBinderBase serviceBinder) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_EmptyCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnaryCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_CacheableUnaryCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingOutputCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_StreamingInputCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_FullDuplexCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_HalfDuplexCall); |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/// <summary> |
|
|
|
|
/// A simple service NOT implemented at servers so clients can test for |
|
|
|
@ -686,6 +701,14 @@ namespace Grpc.Testing { |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall, serviceImpl.UnimplementedCall); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method with a service binder 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> |
|
|
|
|
public static void BindService(grpc::ServiceBinderBase serviceBinder) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_UnimplementedCall); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
/// <summary> |
|
|
|
|
/// A service used to control reconnect server. |
|
|
|
@ -814,6 +837,15 @@ namespace Grpc.Testing { |
|
|
|
|
serviceBinder.AddMethod(__Method_Stop, serviceImpl.Stop); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>Register service method with a service binder 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> |
|
|
|
|
public static void BindService(grpc::ServiceBinderBase serviceBinder) |
|
|
|
|
{ |
|
|
|
|
serviceBinder.AddMethod(__Method_Start); |
|
|
|
|
serviceBinder.AddMethod(__Method_Stop); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|