public void Set(VerifyUserAuthOptions other) { if (other != null) { m_ApiVersion = AuthInterface.VerifyuserauthApiLatest; AuthToken = other.AuthToken; } }
/// <summary> /// Contact the backend service to verify validity of an existing user auth token. /// This function is intended for server-side use only. /// </summary> /// <param name="options">structure containing information about the auth token being verified</param> /// <param name="clientData">arbitrary data that is passed back to you in the CompletionDelegate</param> /// <param name="completionDelegate">a callback that is fired when the logout operation completes, either successfully or in error</param> public void VerifyUserAuth(VerifyUserAuthOptions options, object clientData, OnVerifyUserAuthCallback completionDelegate) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <VerifyUserAuthOptionsInternal, VerifyUserAuthOptions>(ref optionsAddress, options); var clientDataAddress = System.IntPtr.Zero; var completionDelegateInternal = new OnVerifyUserAuthCallbackInternal(OnVerifyUserAuthCallbackInternalImplementation); Helper.AddCallback(ref clientDataAddress, clientData, completionDelegate, completionDelegateInternal); EOS_Auth_VerifyUserAuth(InnerHandle, optionsAddress, clientDataAddress, completionDelegateInternal); Helper.TryMarshalDispose(ref optionsAddress); }