public virtual unsafe global::Com.Microsoft.Identity.Common.Internal.Broker.BrokerRequest BrokerRequestFromSilentOperationParameters(global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.SilentTokenCommandParameters parameters)
        {
            const string __id = "brokerRequestFromSilentOperationParameters.(Lcom/microsoft/identity/common/internal/commands/parameters/SilentTokenCommandParameters;)Lcom/microsoft/identity/common/internal/broker/BrokerRequest;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((parameters == null) ? IntPtr.Zero : ((global::Java.Lang.Object)parameters).Handle);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Broker.BrokerRequest> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                global::System.GC.KeepAlive(parameters);
            }
        }
Exemple #2
0
        public virtual unsafe global::Android.OS.Bundle GetRequestBundleForAcquireTokenSilent(global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.SilentTokenCommandParameters parameters, string negotiatedBrokerProtocolVersion)
        {
            const string __id = "getRequestBundleForAcquireTokenSilent.(Lcom/microsoft/identity/common/internal/commands/parameters/SilentTokenCommandParameters;Ljava/lang/String;)Landroid/os/Bundle;";
            IntPtr       native_negotiatedBrokerProtocolVersion = JNIEnv.NewString(negotiatedBrokerProtocolVersion);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue((parameters == null) ? IntPtr.Zero : ((global::Java.Lang.Object)parameters).Handle);
                __args [1] = new JniArgumentValue(native_negotiatedBrokerProtocolVersion);
                var __rm = _members.InstanceMethods.InvokeVirtualObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Android.OS.Bundle> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                JNIEnv.DeleteLocalRef(native_negotiatedBrokerProtocolVersion);
                global::System.GC.KeepAlive(parameters);
            }
        }