Home
last modified time | relevance | path

Searched refs:responseStream (Results 1 – 25 of 44) sorted by relevance

12

/third_party/grpc/src/csharp/Grpc.Core.Api/
DAsyncServerStreamingCall.cs30 readonly IAsyncStreamReader<TResponse> responseStream; field in Grpc.Core.AsyncServerStreamingCall
41 public AsyncServerStreamingCall(IAsyncStreamReader<TResponse> responseStream, in AsyncServerStreamingCall() argument
47 this.responseStream = responseStream; in AsyncServerStreamingCall()
60 public AsyncServerStreamingCall(IAsyncStreamReader<TResponse> responseStream, in AsyncServerStreamingCall() argument
67 this.responseStream = responseStream; in AsyncServerStreamingCall()
78 return responseStream;
DAsyncDuplexStreamingCall.cs32 readonly IAsyncStreamReader<TResponse> responseStream; field in Grpc.Core.AsyncDuplexStreamingCall
45 IAsyncStreamReader<TResponse> responseStream, in AsyncDuplexStreamingCall() argument
52 this.responseStream = responseStream; in AsyncDuplexStreamingCall()
67 IAsyncStreamReader<TResponse> responseStream, in AsyncDuplexStreamingCall() argument
75 this.responseStream = responseStream; in AsyncDuplexStreamingCall()
86 return responseStream;
DServerMethods.cs46 …Request, TResponse>(TRequest request, IServerStreamWriter<TResponse> responseStream, ServerCallCon…
55 …StreamReader<TRequest> requestStream, IServerStreamWriter<TResponse> responseStream, ServerCallCon…
/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/
DAsyncCallTest.cs391 var responseStream = new ClientResponseStream<string, string>(asyncCall); in ServerStreaming_NoResponse_Success1()
392 var readTask = responseStream.MoveNext(); in ServerStreaming_NoResponse_Success1()
407 var responseStream = new ClientResponseStream<string, string>(asyncCall); in ServerStreaming_NoResponse_Success2()
408 var readTask = responseStream.MoveNext(); in ServerStreaming_NoResponse_Success2()
421 var responseStream = new ClientResponseStream<string, string>(asyncCall); in ServerStreaming_NoResponse_ReadFailure()
422 var readTask = responseStream.MoveNext(); in ServerStreaming_NoResponse_ReadFailure()
434 var responseStream = new ClientResponseStream<string, string>(asyncCall); in ServerStreaming_MoreResponses_Success()
436 var readTask1 = responseStream.MoveNext(); in ServerStreaming_MoreResponses_Success()
439 Assert.AreEqual("response1", responseStream.Current); in ServerStreaming_MoreResponses_Success()
441 var readTask2 = responseStream.MoveNext(); in ServerStreaming_MoreResponses_Success()
[all …]
DAsyncCallServerTest.cs124 var responseStream = new ServerResponseStream<string, string>(asyncCallServer); in WriteAfterCancelNotificationFails()
129 … Assert.Throws(typeof(InvalidOperationException), () => responseStream.WriteAsync("request1")); in WriteAfterCancelNotificationFails()
137 var responseStream = new ServerResponseStream<string, string>(asyncCallServer); in WriteCompletionFailureThrows()
139 var writeTask = responseStream.WriteAsync("request1"); in WriteCompletionFailureThrows()
151 var responseStream = new ServerResponseStream<string, string>(asyncCallServer); in WriteAndWriteStatusCanRunConcurrently()
153 var writeTask = responseStream.WriteAsync("request1"); in WriteAndWriteStatusCanRunConcurrently()
171 var responseStream = new ServerResponseStream<string, string>(asyncCallServer); in WriteAfterWriteStatusThrowsInvalidOperationException()
174 …Assert.ThrowsAsync(typeof(InvalidOperationException), async () => await responseStream.WriteAsync(… in WriteAfterWriteStatusThrowsInvalidOperationException()
/third_party/grpc/src/csharp/Grpc.IntegrationTesting/
DWorkerServiceImpl.cs42 …mReader<ServerArgs> requestStream, IServerStreamWriter<ServerStatus> responseStream, ServerCallCon… in RunServer() argument
48 await responseStream.WriteAsync(new ServerStatus in RunServer()
58 await responseStream.WriteAsync(new ServerStatus in RunServer()
66 …mReader<ClientArgs> requestStream, IServerStreamWriter<ClientStatus> responseStream, ServerCallCon… in RunClient() argument
72 await responseStream.WriteAsync(new ClientStatus in RunClient()
80 await responseStream.WriteAsync(new ClientStatus in RunClient()
DTestServiceImpl.cs49 …allRequest request, IServerStreamWriter<StreamingOutputCallResponse> responseStream, ServerCallCon… in StreamingOutputCall() argument
57 await responseStream.WriteAsync(response); in StreamingOutputCall()
74 …est> requestStream, IServerStreamWriter<StreamingOutputCallResponse> responseStream, ServerCallCon… in FullDuplexCall() argument
84 await responseStream.WriteAsync(response); in FullDuplexCall()
89 …est> requestStream, IServerStreamWriter<StreamingOutputCallResponse> responseStream, ServerCallCon… in HalfDuplexCall() argument
DMetadataCredentialsTest.cs150 serviceImpl.StreamingOutputCallHandler = async (req, responseStream, context) => in MetadataCredentials_Composed()
158 await responseStream.WriteAsync(new StreamingOutputCallResponse()); in MetadataCredentials_Composed()
186 serviceImpl.StreamingOutputCallHandler = async (req, responseStream, context) => in MetadataCredentials_ComposedPerCall()
192 await responseStream.WriteAsync(new StreamingOutputCallResponse()); in MetadataCredentials_ComposedPerCall()
259 …allRequest request, IServerStreamWriter<StreamingOutputCallResponse> responseStream, ServerCallCon… in StreamingOutputCall() argument
263 return StreamingOutputCallHandler(request, responseStream, context); in StreamingOutputCall()
265 return base.StreamingOutputCall(request, responseStream, context); in StreamingOutputCall()
DBenchmarkServiceImpl.cs44 …er<SimpleRequest> requestStream, IServerStreamWriter<SimpleResponse> responseStream, ServerCallCon… in StreamingCall() argument
49 await responseStream.WriteAsync(response); in StreamingCall()
/third_party/grpc/src/csharp/Grpc.Core.Tests/
DResponseHeadersTest.cs103 …ndler = new ServerStreamingServerMethod<string, string>(async (request, responseStream, context) => in ResponseHeadersAsync_ServerStreamingCall()
106 await responseStream.WriteAsync("PASS"); in ResponseHeadersAsync_ServerStreamingCall()
119 …= new DuplexStreamingServerMethod<string, string>(async (requestStream, responseStream, context) => in ResponseHeadersAsync_DuplexStreamingCall()
124 await responseStream.WriteAsync(requestStream.Current); in ResponseHeadersAsync_DuplexStreamingCall()
173 …ndler = new ServerStreamingServerMethod<string, string>(async (request, responseStream, context) => in WriteResponseHeaders_NotAllowedAfterWrite()
175 await responseStream.WriteAsync("A"); in WriteResponseHeaders_NotAllowedAfterWrite()
184 await responseStream.WriteAsync("B"); in WriteResponseHeaders_NotAllowedAfterWrite()
DCompressionTest.cs71 …= new DuplexStreamingServerMethod<string, string>(async (requestStream, responseStream, context) => in WriteOptions_DuplexStreaming()
79 await responseStream.WriteAsync("X"); in WriteOptions_DuplexStreaming()
81 responseStream.WriteOptions = null; in WriteOptions_DuplexStreaming()
82 await responseStream.WriteAsync("Y"); in WriteOptions_DuplexStreaming()
84 responseStream.WriteOptions = new WriteOptions(WriteFlags.NoCompress); in WriteOptions_DuplexStreaming()
85 await responseStream.WriteAsync("Z"); in WriteOptions_DuplexStreaming()
DMockServiceHelper.cs92 …ethod(serverStreamingMethod, (request, responseStream, context) => serverStreamingHandler(request,… in MockServiceHelper()
93 …lexStreamingMethod, (requestStream, responseStream, context) => duplexStreamingHandler(requestStre… in MockServiceHelper()
110 …mingHandler = new ServerStreamingServerMethod<string, string>((request, responseStream, context) => in MockServiceHelper()
116 …ndler = new DuplexStreamingServerMethod<string, string>((requestStream, responseStream, context) => in MockServiceHelper()
DClientServerTest.cs211 …ndler = new ServerStreamingServerMethod<string, string>(async (request, responseStream, context) => in ServerStreamingCall()
213 await responseStream.WriteAllAsync(request.Split(new []{' '})); in ServerStreamingCall()
227 …gHandler = new ServerStreamingServerMethod<string, string>((request, responseStream, context) => T… in ServerStreamingCall_EndOfStreamIsIdempotent()
238 …mingHandler = new ServerStreamingServerMethod<string, string>((request, responseStream, context) => in ServerStreamingCall_ErrorCanBeAwaitedTwice()
257 …mingHandler = new ServerStreamingServerMethod<string, string>((request, responseStream, context) => in ServerStreamingCall_TrailersFromMultipleSourcesGetConcatenated()
278 …= new DuplexStreamingServerMethod<string, string>(async (requestStream, responseStream, context) => in DuplexStreamingCall()
282 await responseStream.WriteAsync(requestStream.Current); in DuplexStreamingCall()
/third_party/grpc/src/csharp/Grpc.Core/Internal/
DServerCallHandler.cs61 var responseStream = new ServerResponseStream<TRequest, TResponse>(asyncCall); in HandleCall()
65 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
120 var responseStream = new ServerResponseStream<TRequest, TResponse>(asyncCall); in HandleCall()
123 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
128 await handler(request, responseStream, context).ConfigureAwait(false); in HandleCall()
178 var responseStream = new ServerResponseStream<TRequest, TResponse>(asyncCall); in HandleCall()
182 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
236 var responseStream = new ServerResponseStream<TRequest, TResponse>(asyncCall); in HandleCall()
239 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
242 await handler(requestStream, responseStream, context).ConfigureAwait(false); in HandleCall()
[all …]
/third_party/flatbuffers/tests/
Dmonster_test_grpc.js38 responseStream: false,
49 responseStream: true,
60 responseStream: false,
71 responseStream: true,
Dmonster_test_grpc.d.ts17 responseStream: boolean; // false property
27 responseStream: boolean; // true property
37 responseStream: boolean; // false property
47 responseStream: boolean; // true property
/third_party/grpc/src/csharp/Grpc.Core.Testing/
DTestCalls.cs58 IAsyncStreamReader<TResponse> responseStream, Task<Metadata> responseHeadersAsync, in AsyncServerStreamingCall() argument
61 …return new AsyncServerStreamingCall<TResponse>(responseStream, responseHeadersAsync, getStatusFunc… in AsyncServerStreamingCall()
69 … IClientStreamWriter<TRequest> requestStream, IAsyncStreamReader<TResponse> responseStream, in AsyncDuplexStreamingCall() argument
73 …return new AsyncDuplexStreamingCall<TRequest, TResponse>(requestStream, responseStream, responseHe… in AsyncDuplexStreamingCall()
/third_party/grpc/src/csharp/Grpc.Examples/
DMathServiceImpl.cs36 …public override async Task Fib(FibArgs request, IServerStreamWriter<Num> responseStream, ServerCal… in Fib() argument
45 await responseStream.WriteAsync(fibEnumerator.Current); in Fib()
61 …ncStreamReader<DivArgs> requestStream, IServerStreamWriter<DivReply> responseStream, ServerCallCon… in DivMany() argument
63 …await requestStream.ForEachAsync(async divArgs => await responseStream.WriteAsync(DivInternal(divA… in DivMany()
/third_party/grpc/examples/node/static_codegen/route_guide/
Droute_guide_grpc_pb.js89 responseStream: false,
106 responseStream: true,
121 responseStream: false,
136 responseStream: true,
/third_party/grpc/src/csharp/Grpc.Core/Interceptors/
DServerServiceDefinitionExtensions.cs118 …r.AddMethod(method, (request, responseStream, context) => interceptor.ServerStreamingServerHandler… in AddMethod()
125 …od(method, (requestStream, responseStream, context) => interceptor.DuplexStreamingServerHandler(re… in AddMethod()
/third_party/grpc/examples/csharp/RouteGuide/RouteGuideServer/
DRouteGuideImpl.cs54 …nc Task ListFeatures(Rectangle request, IServerStreamWriter<Feature> responseStream, ServerCallCon… in ListFeatures() argument
59 await responseStream.WriteAsync(response); in ListFeatures()
106 …treamReader<RouteNote> requestStream, IServerStreamWriter<RouteNote> responseStream, ServerCallCon… in RouteChat() argument
114 await responseStream.WriteAsync(prevNote); in RouteChat()
/third_party/grpc/src/csharp/Grpc.Core.Api/Interceptors/
DInterceptor.cs372 …Request, TResponse>(TRequest request, IServerStreamWriter<TResponse> responseStream, ServerCallCon…
376 return continuation(request, responseStream, context);
398 …StreamReader<TRequest> requestStream, IServerStreamWriter<TResponse> responseStream, ServerCallCon…
402 return continuation(requestStream, responseStream, context);
/third_party/grpc/src/csharp/Grpc.Core/
DCalls.cs84 var responseStream = new ClientResponseStream<TRequest, TResponse>(asyncCall); field in Grpc.Core.Calls.TResponse
85 return new AsyncServerStreamingCall<TResponse>(responseStream,
128 var responseStream = new ClientResponseStream<TRequest, TResponse>(asyncCall); field in Grpc.Core.Calls.TResponse
129 return new AsyncDuplexStreamingCall<TRequest, TResponse>(requestStream, responseStream,
/third_party/grpc/src/csharp/Grpc.Core.Tests/Interceptors/
DServerInterceptorTest.cs160 …Request, TResponse>(TRequest request, IServerStreamWriter<TResponse> responseStream, ServerCallCon… in ServerStreamingServerHandler() argument
163 return continuation(request, responseStream, context); in ServerStreamingServerHandler()
166 …StreamReader<TRequest> requestStream, IServerStreamWriter<TResponse> responseStream, ServerCallCon… in DuplexStreamingServerHandler() argument
169 return continuation(requestStream, responseStream, context); in DuplexStreamingServerHandler()
/third_party/flatbuffers/grpc/examples/ts/greeter/src/
Dgreeter_grpc.js36 responseStream: false,
47 responseStream: true,

12