Events between MMC snapin and Window service

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

My service send email messages and log all information to a log file

I wonder if it's common to raise events from the service(the remote object
which hosted inside the service)
to my MMC snapin, so user will be able to see (roughly) what the service is
doing

I am thinking about something similar to COM+ snap in "Transactions
statistics" node

Thanks.
 
Julia,

Basically, you will have to set it up so that you can remote events from
your service to whomever has an instance of a class that your service is
hosting. For the sake of simplicity, define an interface that has the event
information that you want to convey, and have the client pass the interface
implementation to the server (the client or object implementing the
interface has to derive from MarshalByRefObject). That way, when the server
wants to fire an event, it just calls the method on the registered
interfaces.

Hope this helps.
 
Back
Top