mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 20:40:07 +01:00
* mono/Connection.cs: add more bindings * dbus/dbus-threads.c (dbus_threads_init): allow calling this more than once.
19 lines
381 B
C#
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 ();
|
|
}
|
|
}
|