FAQ Database Discussion Community


Looking for explaination System.NotSupportedException

c#,wpf,backgroundworker,observablecollection,dispatcher
So first some code, question in the end. I've got some objects called machines, they have two properties public Logs MachineLogs { get { return _logs; } set { _logs = value; NotifyPropertyChanged ("MachineLogs"); } } public ObservableCollection<Part> Parts { get { return _parts; } set { _parts = value;...

MVVM Dispatcher UI not responisve

c#,wpf,mvvm,dispatcher
I ran in a probrably simple problem: I build a MVVM application with MVVM light. When I'm doing a big calculation my UI is not responsive. I need a dispatcher because I want do access some Dependency Objects. I tried to do with that code: (Might not work because I'm...

symfony2 event dispatcher lazy loading listener

php,symfony2,events,dispatcher,lazy-initialization
I'm creating some of my own events using Symfony Event Dispatcher, which works fine. I noticed however, that the listener I configured in symfony is not lazy loaded, it is always initialized. It is rarely used however. The config in my services.yml looks like: my.handler: class: Acme\AcmeBundle\DependencyInjection\MyHandler arguments: - @my.dependency...

Akka messaging mechanisms by example

routing,akka,dispatcher,event-bus
I have a fair amount of Apache Camel (routing/mediation/orchestation engine; lightweight ESB) experience and am racking my brain trying to understand the difference between Akka: Dispatchers (Dispatcher, PinnedDispatcher, CallingThreadDispatcher) Routers Pools Groups Event Buses According to the docs: Dispatchers are: ...is what makes Akka Actors “tick”, it is the engine...

WPF context menu won't fully close before data heavy operation

wpf,contextmenu,dispatcher,close
I have a WPF application where a data-intensive operation is called by a context menu selection. I'm using Dispatcher to run the data-heavy operation in the background, but the context menu does not fully close before it begins - it starts to close (i.e. fade) but doesn't disappear completely before...

Why is the dispatcher behaving this way when I pass a parameter?

c#,wpf,dispatcher
I'm using a DataGridView in WPF. In the RowEditEnding event, I get the old row (before editing ends) and then call a method through dispatcher to get the new row (after edit) private void myGrid_RowEditEnding(object sender, DataGridRowEditEndingEventArgs e) { DataRowView oldRowView = e.Row.Item as DataRowView; DataRow oldRow = oldRowView.Row; //When...

how to check my akka dispatchers defined in config file working or not

scala,configuration,akka,dispatcher
HI I am new to akka dispatchers i took help from the akka documentation I want to check either i tuned up the dispatcher correctly or not here is my applica.conf include "DirectUserWriteMongoActor" akka { loggers = ["akka.event.slf4j.Slf4jLogger"] loglevel = "DEBUG" } here is my DirectUserWriteMongoActor.conf akka { actor{ ###############################...

Using framework event dispatcher to raise domain event

php,events,laravel,domain-driven-design,dispatcher
When i need to raise domain events, should i use framework specific Event Dispatcher or create my own Event Dispatcher that implemented by framework event dispatcher ? Since the framework has a really nice event dispatcher and the term of DDD said the domain layer should not dependent on any...

how to properly call callback on dispatcher.begininvoke?

c#,dispatcher
I assume that I can just call var dispatcherOp = Application.Current.Dispatcher.BeginInvoke(Action()); dispatcherOp.Completed += dispatcherOp_Completed; but then I am a little concerned. If begininvoke is asynchronous, then What prevents the dispatcher from completing the action before I get the returned dispatcher operation and attach to the completed event. i assume that...

Access to a child object attribute using jstl

spring,java-ee,model-view-controller,jstl,dispatcher
i have an object called "Project" which have a lot of attributes and some of theme are objects i know that using <jstl:out value="${project.id}"/> i get the id of the object in the jsp page but if i want the id of and attribute object of "project" what should i...

Does Dispatcher.BeginInvoke queues the call if it is called from the same thread?

c#,.net,dispatcher,begininvoke
If I have a call like: Application.Current.Dispatcher.BeginInvoke(() => someAction); that is called from the Dispatcher thread does it get queued to be executed later or gets it executed instantly as it does not need to change from one thread to another one? Thanks,...

Calling BeginInvoke from a destructor

c#,.net,wpf,dispatcher
I have some code in a WPF application that looks like this: public class MyTextBox : System.Windows.Controls.TextBox, IDisposable { public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { Dispatcher.BeginInvoke((Action) delegate { // do work on member variables on the UI thread. }); } ~MyTextBox() { Dispose(false);...

No NullPointerException in JSTL when calling methods on null object associated with request object.why?

java,jsp,servlets,nullpointerexception,dispatcher
Yesterday I appeared in an interview. The interviewer shows me this code and asked- <c:when test='${hobby.equals("hobby1")}'> Why there is no null pointer, while the value of hobby is null Code is as- In Sevlet class- request.setAttribute("hobby", null); request.getRequestDispatcher("display.jsp").forward(request, response); In display.jsp- <c:when test='${hobby.equals("hobby1")}'> ...

CQ5/AEM Dispatcher not retaining charset information

character-encoding,cq5,dispatcher,aem
When we pull content from our publish instances, we get a content type header that states that the content is "charset=utf-8". When this files is served from the dispatcher that charset information is missing. This isn't a problem for web pages which look at the encoding declared in the html,...