C# Class MediaAppSample.Core.Platform

Singleton object which holds instances to all the services in this application. Also provides core app functionality for initializing and suspending your application, handling exceptions, and more.
Inheritance: MediaAppSample.Core.Services.PlatformBase
Mostrar archivo Open project: Microsoft/TVHelpers

Private Properties

Property Type Description
Platform MediaAppSample.Core.Models
SignoutAll Task

Public Methods

Method Description
AppInitializingAsync ( InitializationModes mode ) : Task

Logic performed during initialization of the application.

AppSuspending ( ) : void

Logic performed during suspend of the application.

AppUnhandledException ( Exception e ) : bool

Global unhandled exception handler for your application.

GenerateModelArguments ( IModel model ) : string

Creates a querystring parameter string from a model instance.

GenerateModelFromTileIdAsync ( string tileID, CancellationToken ct ) : Task

Converts a tile ID back into an object instance.

GenerateModelTileID ( IModel model ) : string

Generates a unique tile ID used for secondary tiles based on a model instance.

TimedBackgroundWorkAsync ( BackgroundWorkCostValue cost, CancellationToken ct ) : Task

Work that should be performed from the background agent.

Private Methods

Method Description
Platform ( ) : MediaAppSample.Core.Models
SignoutAll ( ) : Task

Logic performed during sign out of a user in this application.

Method Details

AppInitializingAsync() public method

Logic performed during initialization of the application.
public AppInitializingAsync ( InitializationModes mode ) : Task
mode InitializationModes Mode indicates how this app instance is being run.
return Task

AppSuspending() public method

Logic performed during suspend of the application.
public AppSuspending ( ) : void
return void

AppUnhandledException() public method

Global unhandled exception handler for your application.
public AppUnhandledException ( Exception e ) : bool
e System.Exception
return bool

GenerateModelArguments() public method

Creates a querystring parameter string from a model instance.
public GenerateModelArguments ( IModel model ) : string
model IModel Model to convert into a querystring.
return string

GenerateModelFromTileIdAsync() public method

Converts a tile ID back into an object instance.
public GenerateModelFromTileIdAsync ( string tileID, CancellationToken ct ) : Task
tileID string Tile ID to retrieve an object instance for.
ct CancellationToken Cancelation token.
return Task

GenerateModelTileID() public method

Generates a unique tile ID used for secondary tiles based on a model instance.
public GenerateModelTileID ( IModel model ) : string
model IModel Model to convert into a unique tile ID.
return string

TimedBackgroundWorkAsync() public method

Work that should be performed from the background agent.
public TimedBackgroundWorkAsync ( BackgroundWorkCostValue cost, CancellationToken ct ) : Task
cost BackgroundWorkCostValue
ct CancellationToken
return Task