|
|
|
@ -539,22 +539,6 @@ 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. |
|
|
|
|
/// 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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <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> |
|
|
|
@ -692,15 +676,6 @@ 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. |
|
|
|
|
/// 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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <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> |
|
|
|
@ -827,16 +802,6 @@ 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. |
|
|
|
|
/// 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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <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> |
|
|
|
|