This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

asignarTimerTask

By: a guest on Dec 23rd, 2012  |  syntax: VB.NET  |  size: 0.59 KB  |  views: 29  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data