From commits-return-32176-archive-asf-public=cust-asf.ponee.io@tinkerpop.apache.org Tue Sep 18 18:48:37 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3F0CD180679 for ; Tue, 18 Sep 2018 18:48:36 +0200 (CEST) Received: (qmail 73064 invoked by uid 500); 18 Sep 2018 16:48:21 -0000 Mailing-List: contact commits-help@tinkerpop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tinkerpop.apache.org Delivered-To: mailing list commits@tinkerpop.apache.org Received: (qmail 72630 invoked by uid 99); 18 Sep 2018 16:48:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2018 16:48:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 10A38E11D4; Tue, 18 Sep 2018 16:48:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: spmallette@apache.org To: commits@tinkerpop.apache.org Date: Tue, 18 Sep 2018 16:49:06 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [48/50] [abbrv] tinkerpop git commit: Tweaks xml doc comment formatting to match existing code. Tweaks xml doc comment formatting to match existing code. Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/44f0b54d Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/44f0b54d Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/44f0b54d Branch: refs/heads/TINKERPOP-1913 Commit: 44f0b54d1864ad4ae46c124cd4d25c1f952f56c6 Parents: 0735f9a Author: Patrik Husfloen Authored: Thu Sep 13 23:39:19 2018 +0200 Committer: Stephen Mallette Committed: Tue Sep 18 12:34:38 2018 -0400 ---------------------------------------------------------------------- .../Driver/Exceptions/ResponseException.cs | 6 ++-- .../Driver/Messages/ResponseStatusCode.cs | 34 +++++++++++++------- .../src/Gremlin.Net/Driver/ResultSet.cs | 17 ++++------ 3 files changed, 32 insertions(+), 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/44f0b54d/gremlin-dotnet/src/Gremlin.Net/Driver/Exceptions/ResponseException.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/Exceptions/ResponseException.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/Exceptions/ResponseException.cs index f9020d2..59ac1aa 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Driver/Exceptions/ResponseException.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Driver/Exceptions/ResponseException.cs @@ -42,17 +42,17 @@ namespace Gremlin.Net.Driver.Exceptions IReadOnlyDictionary statusAttributes, string message) : base(message) { - StatusAttributes = statusAttributes; StatusCode = statusCode; + StatusAttributes = statusAttributes; } /// - /// Gets the status code returned from the server. + /// Gets the status code returned from the server. /// public ResponseStatusCode StatusCode { get; } /// - /// Gets the status attributes from the gremlin response + /// Gets the status attributes from the gremlin response /// public IReadOnlyDictionary StatusAttributes { get; } } http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/44f0b54d/gremlin-dotnet/src/Gremlin.Net/Driver/Messages/ResponseStatusCode.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/Messages/ResponseStatusCode.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/Messages/ResponseStatusCode.cs index 1c5d088..78f8759 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Driver/Messages/ResponseStatusCode.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Driver/Messages/ResponseStatusCode.cs @@ -26,62 +26,72 @@ using System; namespace Gremlin.Net.Driver.Messages { /// - /// Represents the various status codes that Gremlin Server returns. + /// Represents the various status codes that Gremlin Server returns. /// public enum ResponseStatusCode { /// - /// The server successfully processed a request to completion - there are no messages remaining in this stream. + /// The server successfully processed a request to completion - there are no messages remaining in this + /// stream. /// Success = 200, /// - /// The server processed the request but there is no result to return (e.g. an Iterator with no elements) - there are no messages remaining in this stream. + /// The server processed the request but there is no result to return (e.g. an Iterator with no elements) + /// - there are no messages remaining in this stream. /// NoContent = 204, /// - /// The server successfully returned some content, but there is more in the stream to arrive - wait for a SUCCESS to signify the end of the stream. + /// The server successfully returned some content, but there is more in the stream to arrive - wait for a + /// SUCCESS to signify the end of the stream. /// PartialContent = 206, /// - /// The request attempted to access resources that the requesting user did not have access to. + /// The request attempted to access resources that the requesting user did not have access to. /// Unauthorized = 401, /// - /// A challenge from the server for the client to authenticate its request. + /// A challenge from the server for the client to authenticate its request. /// Authenticate = 407, /// - /// The request message was not properly formatted which means it could not be parsed at all or the "op" code was not recognized such that Gremlin Server could properly route it for processing. Check the message format and retry the request. + /// The request message was not properly formatted which means it could not be parsed at all or the "op" code + /// was not recognized such that Gremlin Server could properly route it for processing. Check the message format + /// and retry the request. /// MalformedRequest = 498, /// - /// The request message was parseable, but the arguments supplied in the message were in conflict or incomplete. Check the message format and retry the request. + /// The request message was parseable, but the arguments supplied in the message were in conflict or incomplete. + /// Check the message format and retry the request. /// InvalidRequestArguments = 499, /// - /// A general server error occurred that prevented the request from being processed. + /// A general server error occurred that prevented the request from being processed. /// ServerError = 500, /// - /// The script submitted for processing evaluated in the ScriptEngine with errors and could not be processed. Check the script submitted for syntax errors or other problems and then resubmit. + /// The script submitted for processing evaluated in the ScriptEngine with errors and could not be processed. + /// Check the script submitted for syntax errors or other problems and then resubmit. /// ScriptEvaluationError = 597, /// - /// The server exceeded one of the timeout settings for the request and could therefore only partially responded or did not respond at all. + /// The server exceeded one of the timeout settings for the request and could therefore only partially responded + /// or did not respond at all. /// ServerTimeout = 598, /// - /// The server was not capable of serializing an object that was returned from the script supplied on the request. Either transform the object into something Gremlin Server can process within the script or install mapper serialization classes to Gremlin Server. + /// The server was not capable of serializing an object that was returned from the script supplied on the request. + /// Either transform the object into something Gremlin Server can process within the script or install mapper + /// serialization classes to Gremlin Server. /// ServerSerializationError = 599 } http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/44f0b54d/gremlin-dotnet/src/Gremlin.Net/Driver/ResultSet.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/ResultSet.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/ResultSet.cs index 00a24d3..62a0b3c 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Driver/ResultSet.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Driver/ResultSet.cs @@ -27,8 +27,8 @@ using System.Collections.Generic; namespace Gremlin.Net.Driver { /// - /// A ResultSet is returned from the submission of a Gremlin script to the server and represents the results provided by the server - /// ResultSet includes enumerable data and status attributes. + /// A ResultSet is returned from the submission of a Gremlin script to the server and represents the results + /// provided by the server. ResultSet includes enumerable data and status attributes. /// /// Type of the result elements public sealed class ResultSet : IReadOnlyCollection @@ -36,12 +36,12 @@ namespace Gremlin.Net.Driver private readonly IReadOnlyCollection _data; /// - /// Gets or sets the status attributes from the gremlin response + /// Gets or sets the status attributes from the gremlin response /// public IReadOnlyDictionary StatusAttributes { get; } /// - /// Initializes a new instance of the ResultSet class for the specified data and status attributes. + /// Initializes a new instance of the ResultSet class for the specified data and status attributes. /// /// /// @@ -51,22 +51,19 @@ namespace Gremlin.Net.Driver this.StatusAttributes = attributes; } - /// Returns an enumerator that iterates through the collection. - /// An enumerator that can be used to iterate through the collection. + /// public IEnumerator GetEnumerator() { return _data.GetEnumerator(); } - /// Returns an enumerator that iterates through a collection. - /// An object that can be used to iterate through the collection. + /// IEnumerator IEnumerable.GetEnumerator() { return _data.GetEnumerator(); } - /// Gets the number of elements in the collection. - /// The number of elements in the collection. + /// public int Count => _data.Count; } }