|
|
@ -88,6 +88,24 @@ namespace Grpc.Core |
|
|
|
return responseAsync.GetAwaiter(); |
|
|
|
return responseAsync.GetAwaiter(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <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> |
|
|
|
/// <summary> |
|
|
|
/// Provides means to cleanup after the call. |
|
|
|
/// 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. |
|
|
|
/// If the call has already finished normally (request stream has been completed and call result has been received), doesn't do anything. |
|
|
|