EventNotifierService helps multiple services be notified when an event occurs.

See example below where Service 1 wants to let all other Services (Service 2, 3, 4) about an event.

msc_inline_mscgraph_2

SUBSCRIBE TO EVENT

Sending this message makes the notifier service send notification to that service upon receiving a specifc event.

Operation:

   Defs::Notifier::MO_SUBSCRIBE_FOR_EVENT

Arguments:

   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName 
   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName 

UNSUBSCRIBE FROM EVENT

This makes the notifier service to remove the service from the subscriber list for that event. The Event Name should be added to BootEventDefs.h

Operation:

   Defs::Notifier::MO_UNSUBSCRIBE_FROM_EVENT

Arguments:

   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName 
   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName

UNSUBSCRIBE FROM ALL EVENTS

This makes the notifier service to remove the serivce from all events it is subscribed to. The Event Name should be added to BootEventDefs.h

Operation:

   Defs::Notifier::MO_UNSUBSCRIBE_FROM_ALL_EVENTS

Arguments:

   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_SUBSCRIBER] = ServiceName 

RAISE EVENT

This makes the notifier service to send the event to those that are interested.

Operation:

   Defs::Notifier::MO_SIGNAL_EVENT

Arguments:

   [Defs::Notifier::MS_EVN_NOTIFIER][Defs::Notifier::S_EVENT] = EventName 

Refer to Events for details on various events available.


Generated on Wed Oct 12 2011 21:46:52. © CodeLathe LLC 2007-2011. All Rights Reserved.