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
1 answer

How to dispatch SharePoint user to different landing page per their user group immediately after login

I got a requirement to dispatch users to different landing page per their user group immediately after login, it seems SharePoint does not supply an API regarding login event, so I implemented a web part and added it to homepage to handle the…
S.831
  • 113
  • 1
  • 10
0
votes
1 answer

STA thread in wpf

I have a problem with ListViewItem.When i use it in a thread, it display a message: "The calling thread must be STA, because many UI components require this." and then I change it to : Mythread.SetApartmentState(ApartmentState.STA); Although when…
teardrop
  • 545
  • 3
  • 9
  • 18
0
votes
3 answers

Calling dispatcher from outside class in to main window is not working

private void button1_Click(object sender, RoutedEventArgs e) { new Thread(delegate() { doTest(); }).Start(); } When doTest() included with in the mainwindow , as below , my textbox is updating from the thread , i can see text box…
panindra
  • 646
  • 2
  • 11
  • 33
0
votes
1 answer

Arraycollection not capturing the thrown event?

I have a collection of objects and each object throws an event every time its value gets updated. Im trying to capture that event by adding a listener to the arraycollection that holds it (see main class) but its not working. Honestly I'm not sure…
steve
0
votes
2 answers

Running a function every 2-3 days on a specific time

i am wondering what is the best way to do this, what i am thinking of is a Dispatcher that checks for the current time and if it equals to the user specified date time then the function gets called, is there a better way to do this?
user1570048
  • 880
  • 6
  • 35
  • 69
0
votes
2 answers

Random timing in Dispatcher.Invoke() use

First, sorry for my bad english. I have to draw a curve almost in real time. To do that I use: - a Thread to stack points - a thread to unstack points - and the "graphic thread" which is kind of blackbox to me, and that i just can reach it by the…
0
votes
0 answers

performance hit for lots of dispatcher calls (.NET)?

I wrote a validation function that is run by a BackgroundWorker in a WPF application. It formerly ran on the UI thread, but it's a little intense and was freezing the UI. As a result, I had to wrap lots of lines om the validation function with…
Jay
  • 510
  • 6
  • 17
0
votes
1 answer

How to set cookie in a CakePHP dispatcher filter?

In my application I need do some kind of "auto login" logic at the beginning of app work. In this "auto login" function I do many actions, and one of them - setting cookie, using CookieComponent. When I use this autoLogin in controller or component…
Vovkin
  • 436
  • 1
  • 5
  • 14
0
votes
1 answer

Detect whether an Image control has finished updating its image

Background: I am displaying live images from a high speed digital camera at greater than 60Hz. Live image are displayed by updating Image control's ImageSource: this.Dispatcher.Invoke(DispatcherPriority.Normal,(ThreadStart)delegate() {…
0
votes
1 answer

Dispatcher madness, how am i still in the background thread or is Visual Studio wrong?

I am invoking a service module call from my viewmodel in the background thread by using a background worker, all fine and dandy. The service module method has an action parameter which is invoked when the service returns. Now I need to get back to…
Lee
  • 236
  • 1
  • 2
  • 10
0
votes
1 answer

Apache CXF client with Spring MVC - BindingInfo is not SOAPBindingInfo

I am working on a spring MVC project, from which I need to access a webservice(client mode) My web service client is a different maven project which is working fine from its JUnit test cases. When i add this as a dependency to my Spring MVC project…
Tejas
  • 6,508
  • 1
  • 21
  • 25
0
votes
2 answers

Adding StackPanel To Grid.Children collection From another thread

I have a Panel which I build in the code and populate it with user controls. When its done populating, I raise an event to the main GUI telling it the population is done and I pass the stack panel. Then I want to add this panel to the container…
gilad
  • 297
  • 5
  • 21
0
votes
1 answer

Event listener not thrown because of registering issue

I have a problem trying to register my own Event/Listener to the event dispatcher. What I'm registering through the services of my bundle @MyBundle/Resources/services.yml is loaded only during the rendering process, so it's not available when doing…
Yoni Elyo
  • 487
  • 6
  • 23
0
votes
1 answer

How do I pass messages from my main Window to its Pages using WPF?

I have a C# application using WPF consisting of a single Window holding four Pages within Frames within a Grid. The main Window receives messages via a socket. I am attempting to send these messages to the appropriate Page for processing, but am…
justJ
  • 99
  • 9
0
votes
4 answers

Dispatcher.Invoke loop freeze UI

I have log tailing app which is executing Background worker thread in infinitive loop and checking for latest entries inside some TXT file. Once it find new entries I use Dispatcher.Invoke to update TextBox on the screen with latest entry added to…
idelix
  • 135
  • 3
  • 14