Why my DispatcherTimer don\'t work with Windows Service .
The purpose behind that i want use DispatcherTimer for check a windows service License
The point of DispatcherTimer
is to fire its Tick
event on the dispatcher thread. That's important because you can only manipulate Silverlight/WPF UI elements on the dispatcher thread. In a Windows Service, there is no dispatcher thread... there's no UI to manipulate. Why would you want to use a DispatcherTimer
instead of (say) System.Timers.Timer?