Example #1
0
 def adaptation(response_consumer, operation_context):
     rpc_context = _control.RpcContext(operation_context)
     return method.service(response_consumer.consume_and_terminate,
                           rpc_context)
Example #2
0
 def on_payload(payload):
     method.service(payload, response_consumer.consume_and_terminate,
                    _control.RpcContext(operation_context))
Example #3
0
 def on_payload(payload):
     method.service(payload, response_consumer,
                    _control.RpcContext(operation_context))
Example #4
0
 def in_pool_thread():
     _control.pipe_iterator_to_consumer(
         method.service(rendezvous,
                        _control.RpcContext(operation_context)),
         response_consumer, operation_context.is_active, True)
Example #5
0
 def in_pool_thread():
     response_consumer.consume_and_terminate(
         method.service(rendezvous,
                        _control.RpcContext(operation_context)))
Example #6
0
 def adaptation(response_consumer, operation_context):
     rpc_context = _control.RpcContext(operation_context)
     return _ValueInStreamOutConsumer(method.service, rpc_context,
                                      response_consumer)
Example #7
0
 def adaptation(response_consumer, operation_context):
     rpc_context = _control.RpcContext(operation_context)
     return stream_util.TransformingConsumer(
         lambda request: method.service(request, rpc_context),
         response_consumer)
Example #8
0
 def __init__(self, operation):
     self._operation = operation
     self.context = _control.RpcContext(operation.context)