summaryrefslogtreecommitdiffstats
path: root/mono/Test.cs
diff options
context:
space:
mode:
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 ();
}
}