Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40B6A200CDF for ; Thu, 17 Aug 2017 13:36:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F08A16ABDA; Thu, 17 Aug 2017 11:36:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9A49316ABD4 for ; Thu, 17 Aug 2017 13:36:42 +0200 (CEST) Received: (qmail 13108 invoked by uid 500); 17 Aug 2017 11:36:41 -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 12727 invoked by uid 99); 17 Aug 2017 11:36:41 -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; Thu, 17 Aug 2017 11:36:41 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0ABB1E0395; Thu, 17 Aug 2017 11:36:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: jorgebg@apache.org To: commits@tinkerpop.apache.org Date: Thu, 17 Aug 2017 11:36:58 -0000 Message-Id: <0f5585aeeaea47149a838d10246ae3bb@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [20/50] [abbrv] tinkerpop git commit: Move Utils to Gremlin.Net.Process archived-at: Thu, 17 Aug 2017 11:36:45 -0000 Move Utils to Gremlin.Net.Process Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/07280168 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/07280168 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/07280168 Branch: refs/heads/TINKERPOP-1489 Commit: 07280168178a89655dead07a2435fada36eb813e Parents: a655e26 Author: Jorge Bay Gondra Authored: Wed Aug 9 15:28:21 2017 +0200 Committer: Jorge Bay Gondra Committed: Wed Aug 9 15:28:21 2017 +0200 ---------------------------------------------------------------------- .../src/Gremlin.Net/Driver/ConnectionPool.cs | 2 +- .../Remote/DriverRemoteTraversalSideEffects.cs | 2 +- .../Process/Remote/RemoteStrategy.cs | 1 - gremlin-dotnet/src/Gremlin.Net/Process/Utils.cs | 55 ++++++++++++++++++++ .../src/Gremlin.Net/Structure/Utils.cs | 55 -------------------- 5 files changed, 57 insertions(+), 58 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07280168/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs index 98cb547..945e5e4 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs @@ -26,7 +26,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Gremlin.Net.Structure; +using Gremlin.Net.Process; namespace Gremlin.Net.Driver { http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07280168/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs index e8df942..8f2b3e6 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Driver/Remote/DriverRemoteTraversalSideEffects.cs @@ -25,8 +25,8 @@ using System; using System.Collections.Generic; using System.Linq; using Gremlin.Net.Driver.Messages; +using Gremlin.Net.Process; using Gremlin.Net.Process.Traversal; -using Gremlin.Net.Structure; namespace Gremlin.Net.Driver.Remote { http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07280168/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs index b914063..098a46d 100644 --- a/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Remote/RemoteStrategy.cs @@ -23,7 +23,6 @@ using System.Threading.Tasks; using Gremlin.Net.Process.Traversal; -using Gremlin.Net.Structure; namespace Gremlin.Net.Process.Remote { http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07280168/gremlin-dotnet/src/Gremlin.Net/Process/Utils.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Utils.cs b/gremlin-dotnet/src/Gremlin.Net/Process/Utils.cs new file mode 100644 index 0000000..e1781ab --- /dev/null +++ b/gremlin-dotnet/src/Gremlin.Net/Process/Utils.cs @@ -0,0 +1,55 @@ +#region License + +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +#endregion + +using System; +using System.Runtime.ExceptionServices; +using System.Threading.Tasks; + +namespace Gremlin.Net.Process +{ + /// + /// Contains useful methods that can be reused across the project. + /// + internal static class Utils + { + /// + /// Waits the completion of the provided Task. + /// When an AggregateException is thrown, the inner exception is thrown. + /// + public static void WaitUnwrap(this Task task) + { + try + { + task.Wait(); + } + catch (AggregateException ex) + { + if (ex.InnerExceptions.Count == 1) + { + ExceptionDispatchInfo.Capture(ex.InnerException).Throw(); + } + throw; + } + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/07280168/gremlin-dotnet/src/Gremlin.Net/Structure/Utils.cs ---------------------------------------------------------------------- diff --git a/gremlin-dotnet/src/Gremlin.Net/Structure/Utils.cs b/gremlin-dotnet/src/Gremlin.Net/Structure/Utils.cs deleted file mode 100644 index 08168ba..0000000 --- a/gremlin-dotnet/src/Gremlin.Net/Structure/Utils.cs +++ /dev/null @@ -1,55 +0,0 @@ -#region License - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -#endregion - -using System; -using System.Runtime.ExceptionServices; -using System.Threading.Tasks; - -namespace Gremlin.Net.Structure -{ - /// - /// Contains useful methods that can be reused across the project. - /// - internal static class Utils - { - /// - /// Waits the completion of the provided Task. - /// When an AggregateException is thrown, the inner exception is thrown. - /// - public static void WaitUnwrap(this Task task) - { - try - { - task.Wait(); - } - catch (AggregateException ex) - { - if (ex.InnerExceptions.Count == 1) - { - ExceptionDispatchInfo.Capture(ex.InnerException).Throw(); - } - throw; - } - } - } -} \ No newline at end of file