dbus/mono/Test.cs
Havoc Pennington cef11442f6 2003-06-22 Havoc Pennington <hp@pobox.com>
* mono/Connection.cs: add more bindings

	* dbus/dbus-threads.c (dbus_threads_init): allow calling this
	more than once.
2003-06-23 02:12:19 +00:00

19 lines
381 B
C#

using System;
class Test {
static void Main() {
DBus.Message m;
DBus.Connection c;
// c = new DBus.Connection ("unix:path=/tmp/foobar");
c = DBus.Connection.GetBus (DBus.Connection.BusType.Session);
m = new DBus.Message ("org.freedesktop.Foo",
"org.freedesktop.DBus.Broadcast");
c.Send (m);
c.Flush ();
}
}