diff options
Diffstat (limited to 'mono/example/EchoServer.cs')
-rw-r--r-- | mono/example/EchoServer.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mono/example/EchoServer.cs b/mono/example/EchoServer.cs new file mode 100644 index 00000000..243a2730 --- /dev/null +++ b/mono/example/EchoServer.cs @@ -0,0 +1,23 @@ +namespace Foo +{ + using System; + using DBus; + using Gtk; + + public class EchoServer + { + public static int Main(string [] args) + { + Application.Init(); + + Connection connection = Bus.GetSessionBus(); + Service service = new Service(connection, "org.freedesktop.Test"); + Echoer echoer = new Echoer(); + service.RegisterObject(echoer, "/org/freedesktop/Test/Echoer"); + + Application.Run(); + + return 0; + } + } +} |