mono / dbus-sharp

DBus Sharp
http://mono.github.com/dbus-sharp
MIT License
77 stars 59 forks source link

How to emit signals with dbus-sharp? #43

Open chmorgan opened 10 years ago

chmorgan commented 10 years ago

I must be missing something, how would I emit a signal from dbus-sharp? I looked through the examples but don't see anything that looks analogous.

chmorgan commented 10 years ago

And I'll answer my own question:

public class Blah : MarshalByRefObject
{
    public event MyEventHandler OnEvent;

    public void EventHandler()
    {
        if(OnEvent != null) { OnEvent(); }
    }
}