ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ptupit...@apache.org
Subject ignite git commit: IGNITE-5343 .NET: Work with JNI directly, get rid of C++ layer Fix UnmanagedCallbacks lifetime
Date Tue, 14 Nov 2017 16:41:58 GMT
Repository: ignite
Updated Branches:
  refs/heads/master ec38564a8 -> d272a0b65


IGNITE-5343 .NET: Work with JNI directly, get rid of C++ layer
Fix UnmanagedCallbacks lifetime

This closes #2985


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d272a0b6
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d272a0b6
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d272a0b6

Branch: refs/heads/master
Commit: d272a0b65806242aecfeed5589549ddf9ae74c8a
Parents: ec38564
Author: Pavel Tupitsyn <ptupitsyn@apache.org>
Authored: Tue Nov 14 19:41:49 2017 +0300
Committer: Pavel Tupitsyn <ptupitsyn@apache.org>
Committed: Tue Nov 14 19:41:49 2017 +0300

----------------------------------------------------------------------
 .../Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs   | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/d272a0b6/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs
b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs
index 77f7e3d..855d11d 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs
@@ -111,6 +111,13 @@ namespace Apache.Ignite.Core.Impl.Unmanaged
             InitHandlers();
         }
 
+        /** <inheritdoc /> */
+        public override object InitializeLifetimeService()
+        {
+            // Ensure that cross-AppDomain reference lives forever.
+            return null;
+        }
+
         /// <summary>
         /// Gets the handle registry.
         /// </summary>


Mime
View raw message