You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2017/11/21 12:10:04 UTC

[10/47] ignite git commit: IGNITE-5343 .NET: Work with JNI directly, get rid of C++ layer Fix UnmanagedCallbacks lifetime

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/ignite-zk
Commit: d272a0b65806242aecfeed5589549ddf9ae74c8a
Parents: ec38564
Author: Pavel Tupitsyn <pt...@apache.org>
Authored: Tue Nov 14 19:41:49 2017 +0300
Committer: Pavel Tupitsyn <pt...@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>