2010-09-10, 11:43 AM
Has the implementation for event notification changed from PVRX2? I can get the start up messages logged, but don't seem be getting any events notified or errors display. What am I missing? (This plugin will not have a skin, but runs in a separate thread to process events received from NPVR) Do we still get all the same events (and more?) in NPVR as we did in PVRX2?
Code:
namespace Test
{
public class TestEventNotify: IEventNotification
{
public TestEventNotify()
{
Logger.Debug("Debug Test Message");
Logger.Error("Error Test Message");
Logger.Info("TestEventNotify: Version " + this.GetType().Assembly.GetName().Version.ToString() + " .ctr called by plugin or config");
}
public void Notify(string eventType, object eventText)
{
try
{
Logger.Debug("TestEventNotify: EVENTS NOTIFIED: eventType= " + eventType.ToString());
Logger.Debug("TestEventNotify: EVENTS NOTIFIED: eventText= '" + eventText.ToString() +"'");
}
catch (Exception ex)
{
Logger.Error(ex.Message);
Logger.Error(ex.ToString());
}
}
}
}
[SIZE="1"]Silverstone GD01S-MXR (three dead rows of pixels in the LCD and defective remote control), Power: Zalman ZM460B-APS (blew up - can't remember what's there now); CPU: Pentium D 3.2 GHz with Asus V72 Cooler; MD: Asus P5LD2 Deluxe 2048MB,
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]
WDC WD10EADS 1TB Data, 320GB System, Asus EN9400GT Silent 512MB, Hauppauge HVR 1300,
XP Home SP3, GB-PVR 2.0, ExternalDisplay v0.3[/SIZE]