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
Afficher le fichier Open project: Microsoft/TVHelpers

Private Properties

Свойство Type Description
Platform MediaAppSample.Core.Models
SignoutAll Task

Méthodes publiques

Méthode 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

Méthode Description
Platform ( ) : MediaAppSample.Core.Models
SignoutAll ( ) : Task

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

Method Details

AppInitializingAsync() public méthode

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

AppSuspending() public méthode

Logic performed during suspend of the application.
public AppSuspending ( ) : void
Résultat void

AppUnhandledException() public méthode

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

GenerateModelArguments() public méthode

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

GenerateModelFromTileIdAsync() public méthode

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.
Résultat Task

GenerateModelTileID() public méthode

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.
Résultat string

TimedBackgroundWorkAsync() public méthode

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