Exemple #1
0
            public unsafe void PerformPrerequisites(global::Com.Microsoft.Identity.Common.Internal.Broker.Ipc.IIpcStrategy p0)
            {
                if (id_performPrerequisites_Lcom_microsoft_identity_common_internal_broker_ipc_IIpcStrategy_ == IntPtr.Zero)
                {
                    id_performPrerequisites_Lcom_microsoft_identity_common_internal_broker_ipc_IIpcStrategy_ = JNIEnv.GetMethodID(class_ref, "performPrerequisites", "(Lcom/microsoft/identity/common/internal/broker/ipc/IIpcStrategy;)V");
                }
                JValue *__args = stackalloc JValue [1];

                __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_performPrerequisites_Lcom_microsoft_identity_common_internal_broker_ipc_IIpcStrategy_, __args);
            }
        public virtual unsafe string Hello(global::Com.Microsoft.Identity.Common.Internal.Broker.Ipc.IIpcStrategy strategy, global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.CommandParameters parameters)
        {
            const string __id = "hello.(Lcom/microsoft/identity/common/internal/broker/ipc/IIpcStrategy;Lcom/microsoft/identity/common/internal/commands/parameters/CommandParameters;)Ljava/lang/String;";

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