C# Класс MediaAppSample.Core.Services.BackgroundTasksManager

Task manager is responsible for registering and unregistering all background tasks used by this application.
Наследование: ServiceBase, IServiceSignout
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckIfAllowed ( ) : bool

Indicates whether or not the app has permissions to run background tasks.

RegisterAllAsync ( ) : System.Threading.Tasks.Task

Registers all background tasks related to this application.

SignoutAsync ( ) : System.Threading.Tasks.Task

Removes background task registrations when the user signs out of the app.

Приватные методы

Метод Описание
BackgroundTasksManager ( ) : MediaAppSample.Core.Commands
RegisterBackgroundTaskAsync ( string taskEntryPoint, string taskName, IBackgroundTrigger trigger, IBackgroundCondition condition = null ) : BackgroundTaskRegistration

Register a background task with the specified taskEntryPoint, name, trigger, and condition (optional).

Remove ( string name ) : void

Unregister background tasks with specified name.

RemoveAll ( ) : void

Removes all registered background tasks related to this application.

Описание методов

CheckIfAllowed() публичный Метод

Indicates whether or not the app has permissions to run background tasks.
public CheckIfAllowed ( ) : bool
Результат bool

RegisterAllAsync() публичный Метод

Registers all background tasks related to this application.
public RegisterAllAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SignoutAsync() публичный Метод

Removes background task registrations when the user signs out of the app.
public SignoutAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task