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

Task.ContinueWith and DispatcherSynchronizationContext

I'm facing an issue that I do not understand when unit testing a code that uses task continuation and DispatcherSynchrinizationContext. My unit test code : [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { …
Riana
  • 689
  • 6
  • 22
0
votes
1 answer

In what case the throughput ability of a system that can handle two processes would be bigger

In what case the throughput ability of a system that can handle two processes would be bigger,1)if them two would be i/o bound or2) the 1st cpu bound and the other i/o bound?
0
votes
1 answer

Error loading DispatcherServlet's default strategy class

I m getting the following exception while trying to deploy the war file on Weblogic 10.3.6 server. The application is using SPring mvc. Error loading DispatcherServlet's default strategy class…
vaibhavaj2
  • 105
  • 2
  • 10
0
votes
3 answers

Accessing GUI thread from a different thread throws Exception

I am trying to display a menu element in my application as soon as a specific bluetooth message arrives. The messages are collected and interpreted through a timer method and if the correct message arrives, the element should be rendered visible. I…
xmashallax
  • 1,673
  • 1
  • 17
  • 34
0
votes
1 answer

Getting the parent of usercontrol inside Dispatcher.BeginInvoke

Am having a Main window in my WPF application inside which am having a tabcontrol.I need to select the tabitem based on the name i pass.Each of the tabitem will contain a user control.But my problem is am not able to get the parent of the…
Dhivya Sadasivam
  • 155
  • 2
  • 2
  • 14
0
votes
1 answer

No mapping found for HTTP request with URI Error

Despite going thru enumerois example I still could not detect the issue am facing ! Any help on the matter would be great assistance. Error am getting is " No mapping found for HTTP request with URI [/PMDBWebReport/pmdb/] in DispatcherServlet with…
techsavvy
  • 143
  • 3
  • 16
0
votes
1 answer

Using UI Thread when running WCF

I am attempting to use WCF to test my program. The problem I am running into is when I call methods through WCF, they are run on a worker thread. The method that I am trying to test needs to run in the UI thread or I get the following error: …
Dan Burgener
  • 796
  • 7
  • 16
0
votes
1 answer

Update a wpf label periodically

I am new to WPF and C# im trying to understand how can I update a UI element from a BL class (to keep a seperation between the logic and the UI) the bl gets periodic updates from a c++ network component and should update the form once a new argument…
crazyPixel
  • 2,301
  • 5
  • 24
  • 48
0
votes
0 answers

Exception throw after refresh the itemsource in WPF

After refreshing its data source then clicking a cell on the grid, it just throws an exception. It seems to be a threading issue. Anyone know the root cause for this issue or in which scenario it will occur? Here's the error message and stacktrace.…
Check Mate
  • 107
  • 2
  • 10
0
votes
2 answers

Dispatcher does not dispose on exit

I am creating a wrapper for a COM library that interacts with IBM mainframes. It can only be accessed from a single thread. To get around this, I've created a System.Windows.Threading.Dispatcher to handle running all interactions on a dedicated…
Josh Brown
  • 935
  • 1
  • 11
  • 21
0
votes
3 answers

How cq5 dispatcher will get to know when to flush cache?

How CQ5 dispatcher will get to know when to flush cache? Can we know the internal process of how the CQ dispatcher will work for caching & load balancing?
VAr
  • 2,551
  • 1
  • 27
  • 40
0
votes
1 answer

Cleanup Code for UserControl as Content of TabItem on removal from TabControl

I have a WPF UserControl that is added as Content in a TabItem. The TabItem is added to the Items collection of TabControl. The Header of the TabItem contains one Label and one Button. The button click removes the TabItem from the Items collection…
Brij
  • 11,731
  • 22
  • 78
  • 116
0
votes
1 answer

How to reset a textbox in WPF in a button handler before doing something else?

I have a simple WPF button and a textbox in my WPF application(not using MVC or binding at all). I like to be able to do the following upon clicking the button: 1) Clear the textbox 2) Create the result 3) assign the result to the textbox I used…
0
votes
1 answer

Collapse forwarding in Apache Disptacher

I'm wondering if it's possible to enable collapsed forwarding for Apache dispatcher in the same way that Varnish or Squid collapse multiple requests. We are using CQ5, which does some pretty heavy duty transformation in the background, and I don't…
Bayani Portier
  • 660
  • 8
  • 18
0
votes
1 answer

SignalR WPF StateChange Issues

I am writing a little WPF application to test some SignalR code. Everything works from what I have written, but I have stumbled across something which I am unsure of. I have created an event handler for the HubConnection StateChanged…
Tim B James
  • 20,084
  • 4
  • 73
  • 103