public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Telemetry.Events.ApiEndEvent PutResult(global::Com.Microsoft.Identity.Common.Internal.Result.AcquireTokenResult result) { const string __id = "putResult.(Lcom/microsoft/identity/common/internal/result/AcquireTokenResult;)Lcom/microsoft/identity/common/internal/telemetry/events/ApiEndEvent;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((result == null) ? IntPtr.Zero : ((global::Java.Lang.Object)result).Handle); var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Telemetry.Events.ApiEndEvent> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(result); } }
public static unsafe global::Com.Microsoft.Identity.Common.Exception.BaseException ExceptionFromAcquireTokenResult (global::Com.Microsoft.Identity.Common.Internal.Result.AcquireTokenResult result) { const string __id = "exceptionFromAcquireTokenResult.(Lcom/microsoft/identity/common/internal/result/AcquireTokenResult;)Lcom/microsoft/identity/common/exception/BaseException;"; try { JniArgumentValue* __args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue ((result == null) ? IntPtr.Zero : ((global::Java.Lang.Object) result).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod (__id, __args); return global::Java.Lang.Object.GetObject<global::Com.Microsoft.Identity.Common.Exception.BaseException> (__rm.Handle, JniHandleOwnership.TransferLocalRef); } finally { global::System.GC.KeepAlive (result); } }