Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 9:53
Steve Messer4-Jul-06 9:53 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 10:15
Leslie Sanford4-Jul-06 10:15 
GeneralRe: How do you implement a message queuing system? [modified] Pin
Steve Messer4-Jul-06 11:07
Steve Messer4-Jul-06 11:07 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 11:09
Leslie Sanford4-Jul-06 11:09 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 11:18
Steve Messer4-Jul-06 11:18 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 11:31
Leslie Sanford4-Jul-06 11:31 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 11:42
Steve Messer4-Jul-06 11:42 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 11:58
Leslie Sanford4-Jul-06 11:58 
smesser wrote:
Each instance of message would have it's own eventqueue that would get
disposed of when the message was disposed of taking with it any subscriptions
that may have been made to it.


But the messages wouldn't dispose of the EventQueue given to them. It's all in how you implement the message class's Dispose method. Whatever the message does when it is disposed of, it knows not to dispose of the EventQueue because it doesn't belong to it.

smesser wrote:
Simple overview:

1. System object creates messages and manages the global eventqueue
2. System object creates and sends events from plugins via the Message send method.
This way there is one global event queue.
3. Plugin has no concept of event queue nor cares about it.


I think it's number 2 that's giving me trouble. Let's run through a scenario to see if I understand:

1. The System sends a message to a plugin via the OnMessage method.
2. The plugin does something with the message.
3. The plugin wants to send a message telling the System and any other plugins listening that something has happened.
4. The plugin asks the System for a message object representing a specific message, e.g. "PlayCompleted".
5. The plugin gets the message back from the System and sends it calling the message's Send method.

Is this close?
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 12:38
Steve Messer4-Jul-06 12:38 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 12:57
Leslie Sanford4-Jul-06 12:57 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 13:23
Steve Messer4-Jul-06 13:23 
GeneralRe: How do you implement a message queuing system? Pin
Leslie Sanford4-Jul-06 19:22
Leslie Sanford4-Jul-06 19:22 
GeneralRe: How do you implement a message queuing system? Pin
Steve Messer4-Jul-06 19:35
Steve Messer4-Jul-06 19:35 
QuestionaxMaskedEdit Control Register error [modified] Pin
freshonlineMax24-Jun-06 10:02
freshonlineMax24-Jun-06 10:02 
QuestionC# Error: The object is currently in use elsewhere. Pin
Marco Delgado24-Jun-06 4:36
Marco Delgado24-Jun-06 4:36 
AnswerRe: C# Error: The object is currently in use elsewhere. Pin
mav.northwind24-Jun-06 10:14
mav.northwind24-Jun-06 10:14 
QuestionPassing variables from C # to a COM object written in C++ Pin
Dave_Roach24-Jun-06 3:31
Dave_Roach24-Jun-06 3:31 
AnswerRe: Passing variables from C # to a COM object written in C++ Pin
Rob Graham24-Jun-06 6:35
Rob Graham24-Jun-06 6:35 
QuestionGetting the memory footprint of objects - sizeOf Pin
srev24-Jun-06 3:05
srev24-Jun-06 3:05 
AnswerRe: Getting the memory footprint of objects - sizeOf Pin
Guffa24-Jun-06 5:33
Guffa24-Jun-06 5:33 
AnswerRe: Getting the memory footprint of objects - sizeOf Pin
Jun Du24-Jun-06 6:04
Jun Du24-Jun-06 6:04 
Questionsql script execuation Pin
_tasleem24-Jun-06 2:59
_tasleem24-Jun-06 2:59 
AnswerRe: sql script execuation Pin
Tamimi - Code24-Jun-06 3:16
Tamimi - Code24-Jun-06 3:16 
GeneralRe: sql script execuation Pin
_tasleem24-Jun-06 3:41
_tasleem24-Jun-06 3:41 
GeneralRe: sql script execuation Pin
Tamimi - Code24-Jun-06 3:47
Tamimi - Code24-Jun-06 3:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.