You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ni...@apache.org on 2020/04/03 16:02:37 UTC
[ignite] 03/03: IGNITE-12859: Support of .Net service call with the
Timestamp and Guid params.
This is an automated email from the ASF dual-hosted git repository.
nizhikov pushed a commit to branch IGNITE-12859
in repository https://gitbox.apache.org/repos/asf/ignite.git
commit f57d1ca2b859a28ad17cf3dbc072d6fcf982fe16
Author: Nikolay Izhikov <ni...@apache.org>
AuthorDate: Fri Apr 3 19:02:02 2020 +0300
IGNITE-12859: Support of .Net service call with the Timestamp and Guid params.
---
.../Impl/Services/ServiceProxySerializer.cs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Services/ServiceProxySerializer.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Services/ServiceProxySerializer.cs
index d4d996b..4817582 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Services/ServiceProxySerializer.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Services/ServiceProxySerializer.cs
@@ -247,11 +247,6 @@ namespace Apache.Ignite.Core.Impl.Services
if (type.IsPrimitive)
return null;
- var handler = BinarySystemHandlers.GetWriteHandler(type);
-
- if (handler != null)
- return null;
-
if (type.IsArray)
{
Type elemType = type.GetElementType();
@@ -260,11 +255,16 @@ namespace Apache.Ignite.Core.Impl.Services
return (writer, o) => writer.WriteGuidArray((Guid?[]) o);
else if (elemType == typeof(DateTime?))
return (writer, o) => writer.WriteTimestampArray((DateTime?[]) o);
- else
- return (writer, o) => writer.WriteArrayInternal((Array) o);
-
}
+ var handler = BinarySystemHandlers.GetWriteHandler(type);
+
+ if (handler != null)
+ return null;
+
+ if (type.IsArray)
+ return (writer, o) => writer.WriteArrayInternal((Array) o);
+
if (arg is ICollection)
return (writer, o) => writer.WriteCollection((ICollection) o);