C# Class MediaAppSample.Core.Services.AuthorizationManager

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

Public Methods

Method Description
IsAuthenticated ( ) : bool

Indicates whether or not a user is authenticated into this app.

SignoutAsync ( ) : System.Threading.Tasks.Task

Signs the user out of the application and removes and credential data from storage / credential locker.

Protected Methods

Method Description
Initialize ( ) : void

Initialization logic which is called on launch of this application.

Private Methods

Method Description
AuthorizationManager ( ) : MediaAppSample.Core.Models
NotifyUserAuthenticated ( ) : void

Notify any subscribers that the user authentication status has changed.

SetUser ( UserResponse response ) : void

Sets the current user of the app.

Method Details

Initialize() protected method

Initialization logic which is called on launch of this application.
protected Initialize ( ) : void
return void

IsAuthenticated() public method

Indicates whether or not a user is authenticated into this app.
public IsAuthenticated ( ) : bool
return bool

SignoutAsync() public method

Signs the user out of the application and removes and credential data from storage / credential locker.
public SignoutAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task