General approach for posting business logic status messages to UI?

Posted by generalt on Stack Overflow See other posts from Stack Overflow or by generalt
Published on 2010-03-12T20:48:37Z Indexed on 2010/03/12 21:07 UTC
Read the original article Hit count: 191

Filed under:
|
|
|
|

Hello all. I have been struggling with this question for awhile now, and I haven't reached a conclusion. I'm not typically a UI programmer, so forgive the noobishness.

I'm writing a typical application with a UI layer (WPF) and a business layer. I want to post status messages to the UI from the business layer (perhaps deep within the business layer), but I don't want the business layer to have any knowledge of the UI. Is there a generally accepted pattern for this?

I was thinking to have a message queue of some sort to which the business layer posts status messages, and have the view model of the UI subscribe to that queue and intercept messages from the queue and route them to the UI. Is that a good approach? Is there somewhere else I should start?

Thank you.

© Stack Overflow or respective owner

Related posts about status

Related posts about message