public void ResendConfirmationEmail(string email, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.resend_confirmation_email(_appHandle, email, (IntPtr)email.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }
public void ConfirmUser(string token, string tokenId, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.confirm_user(_appHandle, token, (IntPtr)token.Length, tokenId, (IntPtr)tokenId.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }
public void RegisterUser(string username, string password, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.register_user(_appHandle, username, (IntPtr)username.Length, password, (IntPtr)password.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }
public void SendResetPasswordEmail(string username, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.send_reset_password_email(_appHandle, username, (IntPtr)username.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }
public void CallResetPasswordFunction(string username, string password, string functionArgs, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.call_reset_password_function(_appHandle, username, (IntPtr)username.Length, password, (IntPtr)password.Length, functionArgs, (IntPtr)functionArgs.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }
public void ResetPassword(string password, string token, string tokenId, TaskCompletionSource <object> tcs) { var tcsHandle = GCHandle.Alloc(tcs); EmailNativeMethods.reset_password( _appHandle, password, (IntPtr)password.Length, token, (IntPtr)token.Length, tokenId, (IntPtr)tokenId.Length, GCHandle.ToIntPtr(tcsHandle), out var ex); ex.ThrowIfNecessary(); }