protected unsafe TokenShareResultInternal(global::Com.Microsoft.Identity.Common.Internal.Cache.ICacheRecord cacheRecord, string refreshToken, string format) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/microsoft/identity/common/internal/cache/ICacheRecord;Ljava/lang/String;Ljava/lang/String;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_refreshToken = JNIEnv.NewString(refreshToken); IntPtr native_format = JNIEnv.NewString(format); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((cacheRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)cacheRecord).Handle); __args [1] = new JniArgumentValue(native_refreshToken); __args [2] = new JniArgumentValue(native_format); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { JNIEnv.DeleteLocalRef(native_refreshToken); JNIEnv.DeleteLocalRef(native_format); global::System.GC.KeepAlive(cacheRecord); } }
public unsafe LocalAuthenticationResult(global::Com.Microsoft.Identity.Common.Internal.Cache.ICacheRecord lastAuthorized, global::System.Collections.Generic.IList <global::Com.Microsoft.Identity.Common.Internal.Cache.ICacheRecord> completeResultFromCache, global::Com.Microsoft.Identity.Common.Internal.Request.SdkType sdkType, bool isServicedFromCache) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Lcom/microsoft/identity/common/internal/cache/ICacheRecord;Ljava/util/List;Lcom/microsoft/identity/common/internal/request/SdkType;Z)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } IntPtr native_completeResultFromCache = global::Android.Runtime.JavaList <global::Com.Microsoft.Identity.Common.Internal.Cache.ICacheRecord> .ToLocalJniHandle(completeResultFromCache); try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue((lastAuthorized == null) ? IntPtr.Zero : ((global::Java.Lang.Object)lastAuthorized).Handle); __args [1] = new JniArgumentValue(native_completeResultFromCache); __args [2] = new JniArgumentValue((sdkType == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sdkType).Handle); __args [3] = new JniArgumentValue(isServicedFromCache); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { JNIEnv.DeleteLocalRef(native_completeResultFromCache); global::System.GC.KeepAlive(lastAuthorized); global::System.GC.KeepAlive(completeResultFromCache); global::System.GC.KeepAlive(sdkType); } }