예제 #1
0
 public ClientStreamingMethodCallHandler(
     ClientStreamingMethodHandler <TRequest, TResponse> handler,
     IIncomingInvocationFactory incomingInvocationFactory)
     : base(incomingInvocationFactory)
 {
     _handler = handler;
 }
예제 #2
0
 public EchoServiceImpl(
     UnaryMethodHandler <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest> unaryHandler,
     ServerStreamingMethodHandler <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest> serverStreamingHandler,
     ClientStreamingMethodHandler <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest> clientStreamingHandler,
     DuplexStreamingMethodHandler <global::Plexus.Interop.Testing.Generated.EchoRequest, global::Plexus.Interop.Testing.Generated.EchoRequest> duplexStreamingHandler
     )
 {
     _unaryHandler           = unaryHandler;
     _serverStreamingHandler = serverStreamingHandler;
     _clientStreamingHandler = clientStreamingHandler;
     _duplexStreamingHandler = duplexStreamingHandler;
 }
 public GreetingServiceImpl(
     UnaryMethodHandler <global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingResponse> unaryHandler,
     ServerStreamingMethodHandler <global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingResponse> serverStreamingHandler,
     ClientStreamingMethodHandler <global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingResponse> clientStreamingHandler,
     DuplexStreamingMethodHandler <global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingRequest, global::Plexus.Interop.Samples.GreetingServer.Generated.GreetingResponse> duplexStreamingHandler
     )
 {
     _unaryHandler           = unaryHandler;
     _serverStreamingHandler = serverStreamingHandler;
     _clientStreamingHandler = clientStreamingHandler;
     _duplexStreamingHandler = duplexStreamingHandler;
 }
예제 #4
0
 public static IMethodCallHandler ClientStreaming <TRequest, TResponse>(
     ClientStreamingMethodHandler <TRequest, TResponse> methodHandler,
     IIncomingInvocationFactory incomingInvocationFactory)
 {
     return(new ClientStreamingMethodCallHandler <TRequest, TResponse>(methodHandler, incomingInvocationFactory));
 }
 /// <summary>
 /// Adds a definitions for a client streaming method.
 /// </summary>
 /// <typeparam name="TRequest">The request message class.</typeparam>
 /// <typeparam name="TResponse">The response message class.</typeparam>
 /// <param name="name">The method name.</param>
 /// <param name="handler">The method handler.</param>
 /// <returns>This builder instance.</returns>
 public Builder WithClientStreamingMethod <TRequest, TResponse>(string name, ClientStreamingMethodHandler <TRequest, TResponse> handler)
 {
     _callHandlers.Add(name, MethodCallHandlers.ClientStreaming(handler, _invocationFactory));
     return(this);
 }