C# 클래스 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.
상속: MediaAppSample.Core.Services.PlatformBase
파일 보기 프로젝트 열기: Microsoft/TVHelpers

Private Properties

프로퍼티 타입 설명
Platform MediaAppSample.Core.Models
SignoutAll Task

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
Platform ( ) : MediaAppSample.Core.Models
SignoutAll ( ) : Task

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

메소드 상세

AppInitializingAsync() 공개 메소드

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

AppSuspending() 공개 메소드

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

AppUnhandledException() 공개 메소드

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

GenerateModelArguments() 공개 메소드

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

GenerateModelFromTileIdAsync() 공개 메소드

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.
리턴 Task

GenerateModelTileID() 공개 메소드

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.
리턴 string

TimedBackgroundWorkAsync() 공개 메소드

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