aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/AsyncUnaryCall.cs
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-10-12 17:08:35 +0000
committerGravatar Craig Tiller <ctiller@google.com>2017-10-12 17:08:35 +0000
commit3f05498663ab48e59acfa6b3bc240a1b27af70e8 (patch)
tree7ebb9355ee75ce116f3c650cdc44a1ed5a5a181c /src/csharp/Grpc.Core/AsyncUnaryCall.cs
parent3ca9115c2a030bf613b3c962985398445ab13e3e (diff)
parent313db433f263061db7083d058ef3e3cef03dc3dd (diff)
Merge github.com:grpc/grpc into epexinf
Diffstat (limited to 'src/csharp/Grpc.Core/AsyncUnaryCall.cs')
-rw-r--r--src/csharp/Grpc.Core/AsyncUnaryCall.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/AsyncUnaryCall.cs b/src/csharp/Grpc.Core/AsyncUnaryCall.cs
index 6348f3c5fd..17747f86ca 100644
--- a/src/csharp/Grpc.Core/AsyncUnaryCall.cs
+++ b/src/csharp/Grpc.Core/AsyncUnaryCall.cs
@@ -34,7 +34,20 @@ namespace Grpc.Core
readonly Func<Metadata> getTrailersFunc;
readonly Action disposeAction;
- internal AsyncUnaryCall(Task<TResponse> responseAsync, Task<Metadata> responseHeadersAsync, Func<Status> getStatusFunc, Func<Metadata> getTrailersFunc, Action disposeAction)
+
+ /// <summary>
+ /// Creates a new AsyncUnaryCall object with the specified properties.
+ /// </summary>
+ /// <param name="responseAsync">The response of the asynchronous call.</param>
+ /// <param name="responseHeadersAsync">Response headers of the asynchronous call.</param>
+ /// <param name="getStatusFunc">Delegate returning the status of the call.</param>
+ /// <param name="getTrailersFunc">Delegate returning the trailing metadata of the call.</param>
+ /// <param name="disposeAction">Delegate to invoke when Dispose is called on the call object.</param>
+ public AsyncUnaryCall(Task<TResponse> responseAsync,
+ Task<Metadata> responseHeadersAsync,
+ Func<Status> getStatusFunc,
+ Func<Metadata> getTrailersFunc,
+ Action disposeAction)
{
this.responseAsync = responseAsync;
this.responseHeadersAsync = responseHeadersAsync;