aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/Status.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/csharp/Grpc.Core/Status.cs')
-rw-r--r--src/csharp/Grpc.Core/Status.cs62
1 files changed, 33 insertions, 29 deletions
diff --git a/src/csharp/Grpc.Core/Status.cs b/src/csharp/Grpc.Core/Status.cs
index 5ea1df7b48..080bbdc2f5 100644
--- a/src/csharp/Grpc.Core/Status.cs
+++ b/src/csharp/Grpc.Core/Status.cs
@@ -1,5 +1,4 @@
#region Copyright notice and license
-
// Copyright 2015, Google Inc.
// All rights reserved.
//
@@ -28,7 +27,6 @@
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
#endregion
using System;
@@ -36,34 +34,40 @@ using System.Runtime.InteropServices;
namespace Grpc.Core
{
- /// <summary>
- /// Represents RPC result.
- /// </summary>
- public struct Status
- {
- readonly StatusCode statusCode;
- readonly string detail;
+ /// <summary>
+ /// Represents RPC result.
+ /// </summary>
+ public struct Status
+ {
+ readonly StatusCode statusCode;
+ readonly string detail;
- public Status(StatusCode statusCode, string detail)
- {
- this.statusCode = statusCode;
- this.detail = detail;
- }
+ public Status(StatusCode statusCode, string detail)
+ {
+ this.statusCode = statusCode;
+ this.detail = detail;
+ }
- public StatusCode StatusCode
- {
- get
- {
- return statusCode;
- }
- }
+ /// <summary>
+ /// Gets the gRPC status code. OK indicates success, all other values indicate an error.
+ /// </summary>
+ public StatusCode StatusCode
+ {
+ get
+ {
+ return statusCode;
+ }
+ }
- public string Detail
- {
- get
- {
- return detail;
- }
- }
- }
+ /// <summary>
+ /// Gets the detail.
+ /// </summary>
+ public string Detail
+ {
+ get
+ {
+ return detail;
+ }
+ }
+ }
}