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 E230C200B43 for ; Tue, 19 Jul 2016 13:00:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E0AE7160A89; Tue, 19 Jul 2016 11:00:49 +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 0FE8E160A76 for ; Tue, 19 Jul 2016 13:00:48 +0200 (CEST) Received: (qmail 30688 invoked by uid 500); 19 Jul 2016 11:00:48 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 30679 invoked by uid 99); 19 Jul 2016 11:00:48 -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, 19 Jul 2016 11:00:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 208DCE03A6; Tue, 19 Jul 2016 11:00:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: ptupitsyn@apache.org To: commits@ignite.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: .NET: Move internal UserSerializerProxy to the appropriate namespace Date: Tue, 19 Jul 2016 11:00:48 +0000 (UTC) archived-at: Tue, 19 Jul 2016 11:00:50 -0000 Repository: ignite Updated Branches: refs/heads/master 6cba20f4e -> 96f25aefd .NET: Move internal UserSerializerProxy to the appropriate namespace Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/96f25aef Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/96f25aef Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/96f25aef Branch: refs/heads/master Commit: 96f25aefd0e04f8f95383b5c2c6bcb3afc7e9757 Parents: 6cba20f Author: Pavel Tupitsyn Authored: Tue Jul 19 14:00:31 2016 +0300 Committer: Pavel Tupitsyn Committed: Tue Jul 19 14:00:31 2016 +0300 ---------------------------------------------------------------------- .../Apache.Ignite.Core.csproj | 2 +- .../Binary/UserSerializerProxy.cs | 68 -------------------- .../Impl/Binary/UserSerializerProxy.cs | 68 ++++++++++++++++++++ 3 files changed, 69 insertions(+), 69 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/96f25aef/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj index 57f89a6..fac94a8 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj @@ -89,7 +89,6 @@ - @@ -164,6 +163,7 @@ + http://git-wip-us.apache.org/repos/asf/ignite/blob/96f25aef/modules/platforms/dotnet/Apache.Ignite.Core/Binary/UserSerializerProxy.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Binary/UserSerializerProxy.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Binary/UserSerializerProxy.cs deleted file mode 100644 index 2cfc95e..0000000 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Binary/UserSerializerProxy.cs +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ - -namespace Apache.Ignite.Core.Binary -{ - using System; - using System.Diagnostics; - using System.Runtime.Serialization; - using Apache.Ignite.Core.Impl.Binary; - - /// - /// User-defined serializer wrapper. - /// - internal class UserSerializerProxy : IBinarySerializerInternal - { - /** */ - private readonly IBinarySerializer _serializer; - - /// - /// Initializes a new instance of the class. - /// - /// The serializer. - public UserSerializerProxy(IBinarySerializer serializer) - { - Debug.Assert(serializer != null); - - _serializer = serializer; - } - - /** */ - public void WriteBinary(T obj, BinaryWriter writer) - { - _serializer.WriteBinary(obj, writer); - } - - /** */ - public T ReadBinary(BinaryReader reader, Type type, int pos) - { - var obj = FormatterServices.GetUninitializedObject(type); - - reader.AddHandle(pos, obj); - - _serializer.ReadBinary(obj, reader); - - return (T) obj; - } - - /** */ - public bool SupportsHandles - { - get { return true; } - } - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/96f25aef/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/UserSerializerProxy.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/UserSerializerProxy.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/UserSerializerProxy.cs new file mode 100644 index 0000000..de25e32 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/UserSerializerProxy.cs @@ -0,0 +1,68 @@ +/* + * 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. + */ + +namespace Apache.Ignite.Core.Impl.Binary +{ + using System; + using System.Diagnostics; + using System.Runtime.Serialization; + using Apache.Ignite.Core.Binary; + + /// + /// User-defined serializer wrapper. + /// + internal class UserSerializerProxy : IBinarySerializerInternal + { + /** */ + private readonly IBinarySerializer _serializer; + + /// + /// Initializes a new instance of the class. + /// + /// The serializer. + public UserSerializerProxy(IBinarySerializer serializer) + { + Debug.Assert(serializer != null); + + _serializer = serializer; + } + + /** */ + public void WriteBinary(T obj, BinaryWriter writer) + { + _serializer.WriteBinary(obj, writer); + } + + /** */ + public T ReadBinary(BinaryReader reader, Type type, int pos) + { + var obj = FormatterServices.GetUninitializedObject(type); + + reader.AddHandle(pos, obj); + + _serializer.ReadBinary(obj, reader); + + return (T) obj; + } + + /** */ + public bool SupportsHandles + { + get { return true; } + } + } +}