Skip to end of metadata
Go to start of metadata

Defines data member for a service that manages user account.

Definition

public interface IAccountService : IService

Summary

The following table summarizes the members exposed in this interface.

Properties

AccountServiceId Gets the account service identifier.
ServiceId Gets the identifier that corresponds to the authentication service for this account.
SupportedSocialServices Gets the supported social services.

Methods

CreateEncryptedAccount(string, string) Creates the encrypted account.
EnsureSignedIn() Ensures the active account is signed in.
GetAccount() Gets the active account.
Initialize(Type) Initializes the account service.
IsLoggedIn() Determines whether the current account is logged in.
SignInAsync(IAccount, AuthenticateOptions) Performs sign in asynchronously.
SignInSocialAsync(string, AuthenticateOptions) Performs sign in to specified social media service asynchronously.
SignOutAsync() Performs sign out asynchronously.
VerifyAsync() Verifies the account asynchronously.

Properties

string AccountServiceId { get; }

Gets the account service identifier.

string ServiceId { get; }

Gets the identifier that corresponds to the authentication service for this account.

String[] SupportedSocialServices { get; }

Gets the supported social services.

Methods

IAccount CreateEncryptedAccount(string username, string password)

Creates the encrypted account.

Parameters

username The username.
password The password.

Task<bool> EnsureSignedIn()

Ensures the active account is signed in.

IAccount GetAccount()

Gets the active account.

void Initialize(Type loginViewModelType)

Initializes the account service.

Parameters

loginViewModelType Type of the login view model.

bool IsLoggedIn()

Determines whether the current account is logged in.

Task<bool> SignInAsync(IAccount account, AuthenticateOptions options)

Performs sign in asynchronously.

Parameters

account The account.
options The authentication options.

Task<bool> SignInSocialAsync(string serviceId, AuthenticateOptions options)

Performs sign in to specified social media service asynchronously.

Parameters

serviceId The service identifier.
options The authentication options.

Task SignOutAsync()

Performs sign out asynchronously.

Task VerifyAsync()

Verifies the account asynchronously.

  • No labels