public static unsafe global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.InteractiveTokenCommandParameters CreateInteractiveTokenCommandParameters(global::Com.Microsoft.Identity.Client.PublicClientApplicationConfiguration configuration, global::Com.Microsoft.Identity.Common.Internal.Providers.Oauth2.OAuth2TokenCache tokenCache, global::Com.Microsoft.Identity.Client.AcquireTokenParameters parameters) { const string __id = "createInteractiveTokenCommandParameters.(Lcom/microsoft/identity/client/PublicClientApplicationConfiguration;Lcom/microsoft/identity/common/internal/providers/oauth2/OAuth2TokenCache;Lcom/microsoft/identity/client/AcquireTokenParameters;)Lcom/microsoft/identity/common/internal/commands/parameters/InteractiveTokenCommandParameters;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((configuration == null) ? IntPtr.Zero : ((global::Java.Lang.Object)configuration).Handle); __args [1] = new JniArgumentValue((tokenCache == null) ? IntPtr.Zero : ((global::Java.Lang.Object)tokenCache).Handle); __args [2] = new JniArgumentValue((parameters == null) ? IntPtr.Zero : ((global::Java.Lang.Object)parameters).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Common.Internal.Commands.Parameters.InteractiveTokenCommandParameters> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(configuration); global::System.GC.KeepAlive(tokenCache); global::System.GC.KeepAlive(parameters); } }
public static unsafe global::Com.Microsoft.Identity.Client.AcquireTokenSilentParameters SilentParametersFromInteractive(global::Com.Microsoft.Identity.Client.AcquireTokenParameters acquireTokenParameters, global::Com.Microsoft.Identity.Common.Internal.Result.ILocalAuthenticationResult localAuthenticationResult) { const string __id = "silentParametersFromInteractive.(Lcom/microsoft/identity/client/AcquireTokenParameters;Lcom/microsoft/identity/common/internal/result/ILocalAuthenticationResult;)Lcom/microsoft/identity/client/AcquireTokenSilentParameters;"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((acquireTokenParameters == null) ? IntPtr.Zero : ((global::Java.Lang.Object)acquireTokenParameters).Handle); __args [1] = new JniArgumentValue((localAuthenticationResult == null) ? IntPtr.Zero : ((global::Java.Lang.Object)localAuthenticationResult).Handle); var __rm = _members.StaticMethods.InvokeObjectMethod(__id, __args); return(global::Java.Lang.Object.GetObject <global::Com.Microsoft.Identity.Client.AcquireTokenSilentParameters> (__rm.Handle, JniHandleOwnership.TransferLocalRef)); } finally { global::System.GC.KeepAlive(acquireTokenParameters); global::System.GC.KeepAlive(localAuthenticationResult); } }