summaryrefslogtreecommitdiffstats
path: root/mono/Test.cs
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-06-23 02:12:19 +0000
committerHavoc Pennington <hp@redhat.com>2003-06-23 02:12:19 +0000
commitcef11442f69e9a649731f3b2a12b655996da265b (patch)
tree63968e3cc34dc13820515bd415adb58ebe14d221 /mono/Test.cs
parent1cc184b4a849619b56bed2be0e752fbc0fb75a29 (diff)
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.
Diffstat (limited to 'mono/Test.cs')
-rw-r--r--mono/Test.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/mono/Test.cs b/mono/Test.cs
index e07504d7..b64ed9c3 100644
--- a/mono/Test.cs
+++ b/mono/Test.cs
@@ -6,10 +6,14 @@ class Test {
DBus.Message m;
DBus.Connection c;
- c = new DBus.Connection ("unix:path=/tmp/foobar");
+ // c = new DBus.Connection ("unix:path=/tmp/foobar");
- m = new DBus.Message ("org.freedesktop.Foo", null);
+ c = DBus.Connection.GetBus (DBus.Connection.BusType.Session);
+
+ m = new DBus.Message ("org.freedesktop.Foo",
+ "org.freedesktop.DBus.Broadcast");
- Console.WriteLine ("Message name is {0}\n", m.Name);
+ c.Send (m);
+ c.Flush ();
}
}