However, note that when the interval is fired again (when the timer handler is executing) this time that handler execution is dropped.
然而,注意,当interval再次触发的时候(这个时候timer的事件正在执行),这一次它的事件被丢弃了。
Finally, we start a timer handler, as shown in Listing 6, to handle the scenario where the Web service client callback handler is never called, which will result in a timeout.
最后,我们启动了一个计时器处理程序(如清单6所示)来处理以下场景:Web服务客户机回调处理程序一直没有被调用,这将导致一个超时。
Just like the rest of the code in a typical Windows Forms application, any code that resides inside a timer event handler (for this type of timer class) is executed using the application's UI thread.
就像一个典型窗体程序里的其它代码一样,任何驻留在一个定时器事件处理函数(指的是该类型的定时器类)中的代码也是使用应用程序的UI线程所执行。
This might include the event hooks, the event handler, the error methods, and the timer methods.
这可能包括事件关联函数、事件处理函数、错误方法和计时器方法。
Timeout handler (Listing 16) is invoked when a task node timer is fired.
任务节点计时器触发调用的超时处理器(清单16)。
When the number of ticks reaches zero for a timer, it calls the timeout handler routine to handle the corresponding timeout for that connection.
当计时器的计时单元数达到零时,它将调用超时处理程序例程为该连接处理相应的超时。
Note that while mouse click handler is executing the first interval callback executes. As with the timer its handler is queued for later execution.
注意当鼠标点击事件正在执行的时候第一次的interval事件也触发了,与timer一样,它的事件也进入队列等待之后执行。
Now to overcome this issue i have make one timer using handler that running for 3 minute and keep checking that my service is running and location object is alive.
现在,为了克服这个问题我已经让一个定时器使用处理器,运行3分钟,并保持检查我的服务正在运行和定位对象是活着的。
Now to overcome this issue i have make one timer using handler that running for 3 minute and keep checking that my service is running and location object is alive.
现在,为了克服这个问题我已经让一个定时器使用处理器,运行3分钟,并保持检查我的服务正在运行和定位对象是活着的。
应用推荐