I have a need to do some real-time reporting on the functionality of a WCF service. The service is self-hosted in a windows app, and my requirement is to report \"live\" to
You seem to be instantiating a default ServiceHost
class:
service = new ServiceHost(typeof(MyService));
***********
service.outputMessage += new MyService.MessageEventHandler(frm2_outputMessage);
// the above line does not work!
and I highly doubt that would have a "outputMessage" property for an event handler.
Shouldn't you be instantiating your own custom service host, something like this:
class MyCustomServiceHost : ServiceHost
{
...... your custom stuff here ......
}
service = new MyCustomServiceHost(typeof(MyService));
*******************
service.outputMessage += new MyService.MessageEventHandler(frm2_outputMessage);
??
Marc