diff options
author | 2015-08-17 13:43:12 -0700 | |
---|---|---|
committer | 2015-08-18 21:59:09 -0700 | |
commit | 2250454721005f643b192e2152c2374e40f6385f (patch) | |
tree | 88071a143e0286078808cb5d20368e90b61b48eb /src | |
parent | 3526db5d1ccc9a200357999304e7d534f404e83b (diff) |
forgot to expose status and trailers for unary call
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.Core/AsyncClientStreamingCall.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/csharp/Grpc.Core/AsyncClientStreamingCall.cs b/src/csharp/Grpc.Core/AsyncClientStreamingCall.cs index bf020cd627..fb9b562c77 100644 --- a/src/csharp/Grpc.Core/AsyncClientStreamingCall.cs +++ b/src/csharp/Grpc.Core/AsyncClientStreamingCall.cs @@ -89,6 +89,24 @@ namespace Grpc.Core } /// <summary> + /// Gets the call status if the call has already finished. + /// Throws InvalidOperationException otherwise. + /// </summary> + public Status GetStatus() + { + return getStatusFunc(); + } + + /// <summary> + /// Gets the call trailing metadata if the call has already finished. + /// Throws InvalidOperationException otherwise. + /// </summary> + public Metadata GetTrailers() + { + return getTrailersFunc(); + } + + /// <summary> /// Provides means to cleanup after the call. /// If the call has already finished normally (request stream has been completed and call result has been received), doesn't do anything. /// Otherwise, requests cancellation of the call which should terminate all pending async operations associated with the call. |