@@ -25,52 +25,58 @@ namespace Grpc.AspNetCore.Server.Model
2525 // Needed because methods are executed with a new service instance each request.
2626
2727 /// <summary>
28- ///
28+ /// Server-side handler for a unary call.
2929 /// </summary>
30- /// <typeparam name="TService"></typeparam>
31- /// <typeparam name="TRequest"></typeparam>
32- /// <typeparam name="TResponse"></typeparam>
33- /// <param name="service"></param>
34- /// <param name="request"></param>
35- /// <param name="serverCallContext"></param>
36- /// <returns></returns>
30+ /// <typeparam name="TService">Service type for this method.</typeparam>
31+ /// <typeparam name="TRequest">Request message type for this method.</typeparam>
32+ /// <typeparam name="TResponse">Response message type for this method.</typeparam>
33+ /// <param name="service">The service instance.</param>
34+ /// <param name="request">The request message.</param>
35+ /// <param name="serverCallContext">The <see cref="ServerCallContext"/> for the call.</param>
36+ /// <returns>
37+ /// A task that represents the completion of the call. The <see cref="Task{TResult}.Result"/>
38+ /// property returns a <typeparamref name="TResponse"/> for the call response.
39+ /// </returns>
3740 public delegate Task < TResponse > UnaryServerMethod < TService , TRequest , TResponse > ( TService service , TRequest request , ServerCallContext serverCallContext ) ;
3841
3942 /// <summary>
40- ///
43+ /// Server-side handler for a client streaming call.
4144 /// </summary>
42- /// <typeparam name="TService"></typeparam>
43- /// <typeparam name="TRequest"></typeparam>
44- /// <typeparam name="TResponse"></typeparam>
45- /// <param name="service"></param>
46- /// <param name="stream"></param>
47- /// <param name="serverCallContext"></param>
48- /// <returns></returns>
45+ /// <typeparam name="TService">Service type for this method.</typeparam>
46+ /// <typeparam name="TRequest">Request message type for this method.</typeparam>
47+ /// <typeparam name="TResponse">Response message type for this method.</typeparam>
48+ /// <param name="service">The service instance.</param>
49+ /// <param name="stream">A <see cref="IAsyncStreamReader{TRequest}"/> that is used to read a stream of request messages.</param>
50+ /// <param name="serverCallContext">The <see cref="ServerCallContext"/> for the call.</param>
51+ /// <returns>
52+ /// A task that represents the completion of the call. The <see cref="Task{TResult}.Result"/>
53+ /// property returns a <typeparamref name="TResponse"/> for the call response.
54+ /// </returns>
4955 public delegate Task < TResponse > ClientStreamingServerMethod < TService , TRequest , TResponse > ( TService service , IAsyncStreamReader < TRequest > stream , ServerCallContext serverCallContext ) ;
5056
5157 /// <summary>
52- ///
58+ /// Server-side handler for a server streaming call.
5359 /// </summary>
54- /// <typeparam name="TService"></typeparam>
55- /// <typeparam name="TRequest"></typeparam>
56- /// <typeparam name="TResponse"></typeparam>
57- /// <param name="service"></param>
58- /// <param name="request"></param>
59- /// <param name="stream"></param>
60- /// <param name="serverCallContext"></param>
61- /// <returns></returns>
60+ /// <typeparam name="TService">Service type for this method. </typeparam>
61+ /// <typeparam name="TRequest">Request message type for this method. </typeparam>
62+ /// <typeparam name="TResponse">Response message type for this method. </typeparam>
63+ /// <param name="service">The service instance. </param>
64+ /// <param name="request">The request message. </param>
65+ /// <param name="stream">A <see cref="IServerStreamWriter{TResponse}"/> that is used to write a stream of response messages. </param>
66+ /// <param name="serverCallContext">The <see cref="ServerCallContext"/> for the call. </param>
67+ /// <returns>A task that represents the completion of the call. </returns>
6268 public delegate Task ServerStreamingServerMethod < TService , TRequest , TResponse > ( TService service , TRequest request , IServerStreamWriter < TResponse > stream , ServerCallContext serverCallContext ) ;
6369
6470 /// <summary>
65- ///
71+ /// Server-side handler for a duplex streaming call.
6672 /// </summary>
67- /// <typeparam name="TService"></typeparam>
68- /// <typeparam name="TRequest"></typeparam>
69- /// <typeparam name="TResponse"></typeparam>
70- /// <param name="service"></param>
71- /// <param name="input"></param>
72- /// <param name="output"></param>
73- /// <param name="serverCallContext"></param>
74- /// <returns></returns>
73+ /// <typeparam name="TService">Service type for this method. </typeparam>
74+ /// <typeparam name="TRequest">Request message type for this method. </typeparam>
75+ /// <typeparam name="TResponse">Response message type for this method. </typeparam>
76+ /// <param name="service">The service instance. </param>
77+ /// <param name="input">A <see cref="IAsyncStreamReader{TRequest}"/> that is used to read a stream of request messages. </param>
78+ /// <param name="output">A <see cref="IServerStreamWriter{TResponse}"/> that is used to write a stream of response messages. </param>
79+ /// <param name="serverCallContext">The <see cref="ServerCallContext"/> for the call. </param>
80+ /// <returns>A task that represents the completion of the call. </returns>
7581 public delegate Task DuplexStreamingServerMethod < TService , TRequest , TResponse > ( TService service , IAsyncStreamReader < TRequest > input , IServerStreamWriter < TResponse > output , ServerCallContext serverCallContext ) ;
7682}
0 commit comments