C# 클래스 MediaAppSample.Core.Services.BackgroundTasksManager

Task manager is responsible for registering and unregistering all background tasks used by this application.
상속: ServiceBase, IServiceSignout
파일 보기 프로젝트 열기: Microsoft/TVHelpers

공개 메소드들

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