public unsafe CommandResultCacheItem(global::Com.Microsoft.Identity.Common.Internal.Controllers.CommandResult value) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/microsoft/identity/common/internal/controllers/CommandResult;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((value == null) ? IntPtr.Zero : ((global::Java.Lang.Object)value).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { global::System.GC.KeepAlive(value); } }
public virtual unsafe void Put(global::Com.Microsoft.Identity.Common.Internal.Commands.BaseCommand key, global::Com.Microsoft.Identity.Common.Internal.Controllers.CommandResult value) { const string __id = "put.(Lcom/microsoft/identity/common/internal/commands/BaseCommand;Lcom/microsoft/identity/common/internal/controllers/CommandResult;)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((key == null) ? IntPtr.Zero : ((global::Java.Lang.Object)key).Handle); __args [1] = new JniArgumentValue((value == null) ? IntPtr.Zero : ((global::Java.Lang.Object)value).Handle); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { global::System.GC.KeepAlive(key); global::System.GC.KeepAlive(value); } }