C# Class MediaAppSample.Core.Services.WebAccountManager

Inheritance: ServiceBase, IServiceSignout
Mostrar archivo Open project: Microsoft/TVHelpers

Private Properties

Property Type Description
Cleanup void
DeleteUsersWebAccountDetails void
GetProvider Task
GetProviderInfo WebAccountProviderInfo
GetWebAccount Task
GetWebAccountInfo WebAccountInfo
HasWebAccountInfo bool
OnAccountCommandsRequested void
OnWebAccountProviderRequested void
OnWebAccountRequested void
SaveWebAccountInfo void
SignoutAsync System.Threading.Tasks.Task
SignoutAsync System.Threading.Tasks.Task
WebAccountManager System

Public Methods

Method Description
Show ( WebAccountManangerSuccessHandler successHandler, WebAccountManangerFailedHandler failedHandler ) : void

Displays the Web Account Manager for users to chose an account to authenticate with.

SignoutAsync ( ) : System.Threading.Tasks.Task

Signs the current user out of all web accounts.

Private Methods

Method Description
Cleanup ( ) : void

Clean up after displaying the web account manager.

DeleteUsersWebAccountDetails ( WebAccountTypes type ) : void

Deletes an authenticated account from storage.

GetProvider ( string providerID, string authority ) : Task

Gets a provider by ID.

GetProviderInfo ( string providerID ) : WebAccountProviderInfo

Gets a provider info by ID.

GetWebAccount ( WebAccountTypes type ) : Task

Gets a web account by type.

GetWebAccountInfo ( WebAccountTypes type ) : WebAccountInfo

Retrieves an authenticated account details from storage.

HasWebAccountInfo ( WebAccountTypes type ) : bool

Indicates whether or not an account is stored in storage.

OnAccountCommandsRequested ( AccountsSettingsPane sender, AccountsSettingsPaneCommandsRequestedEventArgs e ) : void
OnWebAccountProviderRequested ( WebAccountProviderCommand cmd ) : void
OnWebAccountRequested ( WebAccountCommand cmd, WebAccountInvokedArgs args ) : void
SaveWebAccountInfo ( WebAccountInfo wi ) : void

Saves an authenticated account to storage.

SignoutAsync ( WebAccountProviderInfo pi ) : System.Threading.Tasks.Task

Signs a user out of the specified provider.

SignoutAsync ( string providerID ) : System.Threading.Tasks.Task

Signs a user out of the specified provider.

WebAccountManager ( ) : System

Method Details

Show() public method

Displays the Web Account Manager for users to chose an account to authenticate with.
public Show ( WebAccountManangerSuccessHandler successHandler, WebAccountManangerFailedHandler failedHandler ) : void
successHandler WebAccountManangerSuccessHandler Call back for when an account is successfully choosen by the user.
failedHandler WebAccountManangerFailedHandler Call back for when an error or cancelled UI occurs by the user.
return void

SignoutAsync() public method

Signs the current user out of all web accounts.
public SignoutAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task