Questions tagged [dispatcher]

In WPF and Silverlight, Dispatcher is an object that is used to execute work on a specific thread. In another meaning, dispatcher defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server.

In and , Dispatcher is an object that is used to execute work on a specific .

In another meaning, a dispatcher object can forward a client's request to a resource or include the resource itself in the response back to the client. A resource can be another servlet, or an HTML file, or a JSP file, etc.

1296 questions
0
votes
2 answers

404 page not found in spring mvc example

I am developing spring application, I am getting 404 page not found. next my folder structure is like this. WebContent-->WEB-INF-->jsp-->next.jsp dispatcher-servlet.xml
Kranti123
  • 199
  • 2
  • 3
  • 14
0
votes
3 answers

Manual dispatching possible in Zend Framework?

i'm wondering how i can manually start execute a controller action of my MVC application. My goal is to integrate the html output of /myController/myAction into another php application (typo3) using a simple include. I thought of manually…
Georg Wächter
  • 970
  • 1
  • 8
  • 13
0
votes
1 answer

What is the use of DispatcherPriority.Invalid and DispatcherPriority.InActive?

Having trouble understanding what are the uses of DispatcherPriority.Invalid and DispatcherPriority.InActive.
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
0
votes
1 answer

How would I call a method, 'from the Window's dispatcher asynchronously'?

I am encountering a problem with an image in a WPF application not updating. It has been suggested that I, "put the method in the window's dispatcher dispatcher. Dispatch to the closest element as possible. And asynchronously..." But I cannot find…
zetar
  • 1,225
  • 2
  • 20
  • 45
0
votes
1 answer

UI not updating after binding the ItemsSource

i am binding an ItemsSource from a ObservableCollection with code below Services.RestServices.GetNotifications(UserID, ++Page).ContinueWith((task) => { Dispatcher.BeginInvoke((Action)(() => { …
Ashok Damani
  • 3,896
  • 4
  • 30
  • 48
0
votes
1 answer

WPF - Dispatcher.Invoke delay

Why my Dispatcher.Invoke action is not being rendered instantly? It's bugging me Dispatcher.Invoke((Action)(() => busyIndicator1.BusyContent = loaderComment), System.Windows.Threading.DispatcherPriority.Send); var sw = new…
eduardo.bbs
  • 159
  • 1
  • 8
0
votes
2 answers

Progressbar windows phone 8 separate thread

Is it possible to run a progressbar in windows phone 8 on a separate thread, or using the Dispatcher class? thanx
Bohrend
  • 1,467
  • 3
  • 17
  • 26
0
votes
1 answer

Error in Dispatcher.Invoke

Yes, i'm sorry. So, i've a new WPF project, that will show once it starts to stream an IP camera. To do this I use the string that shows me only an image. However, to ensure that it becomes video, I use the thread. Because the string for the video…
frenk_nick
  • 19
  • 7
0
votes
0 answers

Delay in Dispatcher.BeginInvoke()

I have a some code: public MainPage() { InitializeComponent(); MyPostRequest.GetDataFromService((result) => { Dispatcher.BeginInvoke(() => { //Update UI from web service}); }); …
Alexandr
  • 1,891
  • 3
  • 32
  • 48
0
votes
2 answers

Dispatcher.Invoke() not invokes specified delegate

Method MethodForThread() works in a different thread and at the end he has to call back method AsyncCallbackMethod() in the thread in which was called the method MethodForThread(). I do it with class Dispatcher. But the fact is that…
Anatolii Humennyi
  • 1,807
  • 3
  • 26
  • 37
0
votes
1 answer

How to access Dispatcher in Silverlight tests?

I am using the SL unit test framework for tests (http://code.msdn.microsoft.com/silverlightut). My code is heavily client-server communications dependant, and I access the GUI dispatcher in several places to make sure important data is only accessed…
bluebit
  • 2,987
  • 7
  • 34
  • 42
0
votes
1 answer

Configure dispatcher on ubuntu 12.04

Am not able to get dispatcher working on my Ubuntu machine, following is the error that I get after apache restart Syntax error on line 2 of /etc/apache2/conf.d/dispatcher.any: Invalid command '/farms', perhaps misspelled or defined by a module not…
user1764832
  • 69
  • 3
  • 8
0
votes
1 answer

WPF Dispatcher.BeginInvoke and thread access

I'm having difficulty understanding why this simple method isn't working If I understand correctly, UIElements must be changed only by their own thread, and background threads cannot. When trying this code. it throws: InvalidOperationException -…
EdQ3
  • 31
  • 1
  • 7
0
votes
1 answer

Task queue for wp8?

What is a correct way to queue complex tasks in wp8? The tasks consists of the following: Showing a ProgressIndicator through updating a model variable Fetching or storing data to a wcf service (UploadStringAsync) Updating potentially data bound…
Carl R
  • 8,104
  • 5
  • 48
  • 80
0
votes
1 answer

Making a popup wait to be shown again

I have a popup in my application for showing messages. Sometimes, two messages get shown too quickly after one another and the second just overrides the first one, making it disappear too quickly. So what I want is for the next message to wait for…
Davio
  • 4,609
  • 2
  • 31
  • 58