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
Показать файл Открыть проект

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