C# Class OfficeTicTacToe.Common.TaskHelper

Afficher le fichier Open project: DXFrance/OfficeTicTacToe

Méthodes publiques

Свойство Type Description
TimeTriggeredTaskProgress string
TimeTriggeredTaskRegistered bool

Méthodes publiques

Méthode Description
CheckTileBrackgroundTask ( ) : void
GetBackgroundTaskStatus ( String name ) : String

Get the registration / completion status of the background task with given name.

RegisterTileBackgroundTask ( ) : System.Threading.Tasks.Task

Register task for every 15 minutes if Internet is available

SendNotification ( ) : System.Threading.Tasks.Task
TaskRequiresBackgroundAccess ( String name ) : bool

Determine if task with given name requires background access.

UnregisterBackgroundTasks ( string name ) : void

Unregister background tasks with specified name.

Private Methods

Méthode Description
AttachProgressAndCompletedHandlers ( IBackgroundTaskRegistration task ) : void
OnCompleted ( IBackgroundTaskRegistration task, BackgroundTaskCompletedEventArgs args ) : void

Handle background task completion.

OnProgress ( IBackgroundTaskRegistration task, BackgroundTaskProgressEventArgs args ) : void

Handle background task progress.

RegisterBackgroundTask ( String taskEntryPoint, String name, IBackgroundTrigger trigger, IBackgroundCondition condition ) : Task

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

Method Details

CheckTileBrackgroundTask() public méthode

public CheckTileBrackgroundTask ( ) : void
Résultat void

GetBackgroundTaskStatus() public static méthode

Get the registration / completion status of the background task with given name.
public static GetBackgroundTaskStatus ( String name ) : String
name String Name of background task to retreive registration status.
Résultat String

RegisterTileBackgroundTask() public méthode

Register task for every 15 minutes if Internet is available
public RegisterTileBackgroundTask ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

SendNotification() public méthode

public SendNotification ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

TaskRequiresBackgroundAccess() public static méthode

Determine if task with given name requires background access.
public static TaskRequiresBackgroundAccess ( String name ) : bool
name String Name of background task to query background access requirement.
Résultat bool

UnregisterBackgroundTasks() public méthode

Unregister background tasks with specified name.
public UnregisterBackgroundTasks ( string name ) : void
name string Name of the background task to unregister.
Résultat void

Property Details

TimeTriggeredTaskProgress public_oe static_oe property

public static string TimeTriggeredTaskProgress
Résultat string

TimeTriggeredTaskRegistered public_oe static_oe property

public static bool TimeTriggeredTaskRegistered
Résultat bool