Design Question

  • Thread starter Thread starter Dan
  • Start date Start date
D

Dan

All,

I have a general design issue that I need some help with.
I have a Windows Service that will, on occasion, be
sending out email notices. These notices fall into two
categories: notices when the service encounters a
processing exceptions that it can't handle and notices
that it generates as part of its job. Exceptions are
reported via Trace messages to a custom listener which
will send out email notices and log the exceptions.

My question concearns the emails that have to be
generated as part of the work the service does. These are
not generated as a result of an exception. In this
instance should I send the email via the same Trace
message vehicle I use for exceptions or should I send the
email independent of the trace system? My reason for
using the Trace vehicle is that I then only reference the
email portion in one area which make maintenance easy but
I am not sure if this violates some other design
principle. What is the best design to follow?

Thanks for the help.
 
Back
Top