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

Is there a deterministic way to know that UWP view rendering/binding has completed?

In WPF I could use the dispatcher to queue my next UI related code (take a snapshot of the visuals) to run after all the pending UI operations had completed: ...code before…
Randall B
  • 81
  • 1
  • 6
-1
votes
1 answer

Accessing an object from another thread with Dispatcher

I have a thread that runs in the background during an asynchronous download. The purpose of the thread is to identify whether or not the download has stopped. My code basically says "if we haven't downloaded any more bytes in the last 10 seconds,…
John Smith
  • 21
  • 4
-1
votes
1 answer

Unable to start apache, error SSLCertificateFile takes one argument, SSL Server Certificate file (`/path/to/file' - PEM or DER encoded)

I have setup the dispatcher in Apache for windows OS. After that trying to configure certificates to enable HTTPS in httpd.config file, then getting below exception every time. Not sure what's wrong here. Using apache 2.2.25 and generated key using…
-1
votes
1 answer

What is a DispatcherFrame in WPF

Maybe someone can explain what a DispatcherFrame is. Other posts and the MS Docs' description is in my opinion not detailed enough: Represents an execution loop in the Dispatcher. Does this mean it is blocking the message queue in some way?…
Hakim
  • 452
  • 4
  • 15
-1
votes
1 answer

No mapping found for HTTP request obtaining resource files (css)

I know there is a lot of questions with the similar topic, but none of thous solved my issue. I get an error: No mapping found for HTTP request with URI [/resources/css/style.css] in DispatcherServlet with name 'dispatcher' No mapping found for HTTP…
nemanjagajic
  • 39
  • 12
-1
votes
3 answers

Dispatcher.CurrentDispatcher returns null

I'm trying to close a WPF window I created in a separate thread from the main hosting thread (The main thread is of a PDM application that I have no control over). The host application references my assembly (it's a plugin). I don't know but why the…
Amen Jlili
  • 1,884
  • 4
  • 28
  • 51
-1
votes
1 answer

Change Label Text from BackGroundWorker DoWork WPF VB.NET

My backgroundWorker doWork's event has many codes to execute.Is it possible to change the label text after each code is executed ? For example : Dim con As New SqlConnection("Data source=" & My.Settings.ip & "," & My.Settings.port & ";Network…
Software Dev
  • 5,368
  • 5
  • 22
  • 45
-1
votes
1 answer

Right usage of delegate and async methods

So a simple application that has a button to get data from a server and then updates a Text in UI. In addition, I want to start another thread that again gets the data every 3 seconds. Is the below code the right way to create a thread and update…
gts13
  • 1,048
  • 1
  • 16
  • 29
-1
votes
1 answer

How to get UI thread dispatcher from other appdomain?

I used to get Dispatcher using Application.Current.Dispatcher in regular WPF applications. But it doesn't work when I try to get it from different AppDomain because Application.Current returns null there.
Matas
  • 820
  • 9
  • 18
-1
votes
1 answer

How can I access UI element while Backgroundworker with Dispatcher?

enter image description here I know this is not the first question about access UI thread but I didn't find the answer to solve my problem. While calling sample method it will display like the message box with abort button.If i click the abort…
Pandi
  • 471
  • 3
  • 17
-1
votes
1 answer

Indeterminate ProgressBar animation jerk in Dispatcher.BeginInvoke

I have a piece of code testing the GUI and threading behavior. I want to keep ProgressBar animation running (with IsIndeterminate="True") as I query the database and add a large number of rows (10K+) into the DataGrid. Even if I wrap the database…
KMC
  • 19,548
  • 58
  • 164
  • 253
-1
votes
1 answer

Assign a ui element to another ui element from another thread in C#

I want to make a grid element in wpf programmatically with c# code and because it needs a huge processing i used a thread for it.now when i want to assign it the visual studio says : "The calling thread cannot access this object because a…
Javad
  • 63
  • 1
  • 9
-1
votes
1 answer

Timer.Elapsed and BeginInvoke still lag GUI

There is a piece of 3rd party API code, SomeWork(), that needs to run every 3 seconds to monitor some physical devices. I would of thought using using System.Timers.Timer and its Elapse event is asynchronous, but it lags my GUI operation every 3…
KMC
  • 19,548
  • 58
  • 164
  • 253
-1
votes
1 answer

Caching issue with AEM dispatcher

I have include load module in httpd.conf file as shown below. LoadModule dispatcher_module libexec/apache2/dispatcher-apache2.4-4.2.0.so Is it fine should it always be included as libexec/apache2/mod_dispatcher.so The docroot in the…
Riding Cave
  • 1,029
  • 1
  • 15
  • 32
-1
votes
1 answer

wpf Busy Indicator is not showing up when followed by Application.Current.Dispatcher.BeginInvoke code

I am using wpf busy indicator and setting its Isbusy property from viewModel. Aftersetting Isbusy property I want to filter my ICollectionview and push it on UI. This Filter operation I have put in IsBusy = true; await…
Jay
  • 1