Skip to main content

OfflineServicesApiClient

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Offline stand-in for the services client. Only the public IP lookup answers; the rest throw OfflineException.

Constructors​

MemberWhat it is
OfflineServicesApiClient()Creates an OfflineServicesApiClient with default values.

Methods​

MemberWhat it is
Task<JwtSecurityToken> GenerateIdentityTokenAsync(object userData)Throws OfflineException.
Task<IPAddress> GetPublicIpAddressAsync()Returns the loopback address straight away.
Task<bool> IsValidShortLivedIdentityTokenAsync(JwtSecurityToken token)Throws OfflineException.
Task RequestPasswordResetAsync(string email)Throws OfflineException.
Task RequestSignUpCodeAsync(string firstName, string lastName, string email, string referral, string campaign)Throws OfflineException.
Task ResetPasswordAsync(int userId, string newPasswordHash, string resetToken)Throws OfflineException.
Task UploadFile(FileStream file, string fileName)Throws OfflineException.
Task VerifyUserAsync(int userIdentifier, string verificationToken)Throws OfflineException.