Ejemplo n.º 1
0
 public BackgroundTaskFacade(IBackgroundTaskRegistration task, OnProgressHandlerArgs OnProgressMethod = null, OnCompletedHandlerArgs OnCompleteMethod = null)
 {
     callbackHandlers = new BackgroundTaskCallbacks(task, OnProgressMethod, OnCompleteMethod);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Wrapper method for composed callback handler
 /// </summary>
 /// <param name="OnProgressMethod"></param>
 /// <param name="OnCompletedMethod"></param>
 public void AttachProgressAndCompletedHandlers(OnProgressHandlerArgs OnProgressMethod, OnCompletedHandlerArgs OnCompletedMethod)
 {
     callbackHandlers.AttachProgressAndCompletedHandlers(new BackgroundTaskProgressEventHandler(OnProgressMethod), new BackgroundTaskCompletedEventHandler(OnCompletedMethod));
 }
Ejemplo n.º 3
0
        public BackgroundTaskFacade(string taskEntryPoint, string name, IBackgroundTrigger trigger, IBackgroundCondition condition,

                                    BackgroundTaskRegistrationGroup group = null, bool requiresBackgroundAccess = false, OnProgressHandlerArgs OnProgressMethod = null, OnCompletedHandlerArgs OnCompleteMethod = null)
            : this(RegisterBackgroundTask(taskEntryPoint, name, trigger, condition, group, requiresBackgroundAccess), OnProgressMethod, OnCompleteMethod)
        {
        }