SHARE
TWEET

asignarTimerTask

a guest Dec 23rd, 2012 29 Never
  1.     Private Shared Sub asignarTimerTask()
  2.         ' Las tareas sólo deben registrarse una vez
  3.         For Each task In BackgroundTaskRegistration.AllTasks
  4.             If task.Value.Name = "TileAsignarTilesTimer" Then
  5.                 Return
  6.             End If
  7.         Next
  8.  
  9.         Dim builder As New BackgroundTaskBuilder()
  10.         builder.Name = "TileAsignarTilesTimer"
  11.         builder.TaskEntryPoint = "BackgroundTasks.TileBackgroundTask"
  12.         'builder.SetTrigger(New TimeTrigger(180, False))
  13.         builder.SetTrigger(New TimeTrigger(15, False))
  14.         builder.Register()
  15.  
  16.     End Sub
RAW Paste Data
Top