本文介绍了TimeTrigger根本没有开火。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 大家好, 我遇到了TimeTrigger的问题。我的代码粘贴在下面。 var myTaskBuilder = new BackgroundTaskBuilder(); var myTrigger = new TimeTrigger( 1,false); IBackgroundCondition condition = new SystemCondition(SystemConditionType.None); myTaskBuilder.AddCondition(condition); myTaskBuilder.SetTrigger(myTrigger); myTaskBuilder.TaskEntryPoint ="提到的任务输入点" ;; myTaskBuilder.Name ="提到的任务名称" ;; var myTask = myTaskBuilder.Register(); RegisterTaskListeners(myTask); 这里TimeTrigger不会触发。 对我来说,SystemTrigger可以正常工作,步骤如上所示。 请建议我在这里失踪以解雇TimeTrigger。另请告诉我如何运行时间经纪人。 我尝试过它的清新剂价值15,但它没有开火。 这对我来说是一个非常紧迫的问题。请建议克服这一点。 谢谢, Vipin 解决方案 您好Vipin, 您确定它没有被解雇吗? 以下是该属性的定义: 指定在计划后台任务之前等待的分钟数。 系统在 FreshnessTime 过去后的15分钟内安排任务 不保证立即开火! -Jeff Hi all,I am facing issue with TimeTrigger. My code is pasted below.var myTaskBuilder = new BackgroundTaskBuilder();var myTrigger = new TimeTrigger(1, false);IBackgroundCondition condition = new SystemCondition(SystemConditionType.None);myTaskBuilder.AddCondition(condition);myTaskBuilder.SetTrigger(myTrigger);myTaskBuilder.TaskEntryPoint = "Mentioned Task Entry Point";myTaskBuilder.Name = "Mentioned Task Name";var myTask = myTaskBuilder.Register();RegisterTaskListeners(myTask);here TimeTrigger do not fire.For me SystemTrigger works fine with similar steps as shown above.Please Suggest what I am missing here to fire the TimeTrigger. Also please tell me how to run the Time Broker.I tried it with fresheners value 15 also but it did not fire. This is a very urgent issue for me. Please suggest to overcome this.Thanks,Vipin 解决方案 Hi Vipin,Are you sure it is not firing?Here is the definition of the property:Specifies the number of minutes to wait before scheduling the background task.The system schedules the task within 15 minutes after FreshnessTime elapses It is not guaranteed to fire immediately! -Jeff 这篇关于TimeTrigger根本没有开火。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-11 08:48