#region Copyright notice and license // Copyright 2018 The 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. // See the License for the specific language governing permissions and // limitations under the License. #endregion using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using Grpc.Core.Interceptors; using Grpc.Core.Internal; using Grpc.Core.Utils; namespace Grpc.Core { /// /// Allows binding server-side method implementations in alternative serving stacks. /// Instances of this class are usually populated by the BindService method /// that is part of the autogenerated code for a protocol buffers service definition. /// /// public class ServiceBinderBase { /// /// Adds a definition for a single request - single response method. /// /// The request message class. /// The response message class. /// The method. /// The method handler. public virtual void AddMethod( Method method, UnaryServerMethod handler) where TRequest : class where TResponse : class { throw new NotImplementedException(); } /// /// Adds a definition for a client streaming method. /// /// The request message class. /// The response message class. /// The method. /// The method handler. public virtual void AddMethod( Method method, ClientStreamingServerMethod handler) where TRequest : class where TResponse : class { throw new NotImplementedException(); } /// /// Adds a definition for a server streaming method. /// /// The request message class. /// The response message class. /// The method. /// The method handler. public virtual void AddMethod( Method method, ServerStreamingServerMethod handler) where TRequest : class where TResponse : class { throw new NotImplementedException(); } /// /// Adds a definition for a bidirectional streaming method. /// /// The request message class. /// The response message class. /// The method. /// The method handler. public virtual void AddMethod( Method method, DuplexStreamingServerMethod handler) where TRequest : class where TResponse : class { throw new NotImplementedException(); } } }