Merge pull request #15140 from jskeet/status

Add RpcException.StatusCode property
pull/15150/head
Mehrdad Afshari 7 years ago committed by GitHub
commit 98a56a2951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/csharp/Grpc.Core/RpcException.cs

@ -72,6 +72,17 @@ namespace Grpc.Core
}
}
/// <summary>
/// Returns the status code of the call, as a convenient alternative to <see cref="StatusCode">Status.StatusCode</see>.
/// </summary>
public StatusCode StatusCode
{
get
{
return status.StatusCode;
}
}
/// <summary>
/// Gets the call trailing metadata.
/// Trailers only have meaningful content for client-side calls (in which case they represent the trailing metadata sent by the server when closing the call).

Loading…
Cancel
Save