IGNITE-5343 .NET: Work with JNI directly, get rid of C++ layer
authorPavel Tupitsyn <ptupitsyn@apache.org>
Tue, 14 Nov 2017 16:41:49 +0000 (19:41 +0300)
committerPavel Tupitsyn <ptupitsyn@apache.org>
Tue, 14 Nov 2017 16:41:49 +0000 (19:41 +0300)
Fix UnmanagedCallbacks lifetime

This closes #2985

modules/platforms/dotnet/Apache.Ignite.Core/Impl/Unmanaged/UnmanagedCallbacks.cs

index 77f7e3d..855d11d 100644 (file)
@@ -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>