From c916037773d7d3d8d37ca2c5a8899b7b728e377d Mon Sep 17 00:00:00 2001 From: Owen Fraser-Green Date: Tue, 23 Mar 2004 12:10:32 +0000 Subject: First checkin of the Mono bindings. --- mono/example/EchoClient.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 mono/example/EchoClient.cs (limited to 'mono/example/EchoClient.cs') diff --git a/mono/example/EchoClient.cs b/mono/example/EchoClient.cs new file mode 100644 index 00000000..dc20771a --- /dev/null +++ b/mono/example/EchoClient.cs @@ -0,0 +1,19 @@ +namespace Foo +{ + using System; + using DBus; + + public class EchoClient + { + public static int Main(string [] args) + { + Connection connection = Bus.GetSessionBus(); + Service service = Service.Get(connection, "org.freedesktop.Test"); + Echoer echoer = (Echoer) + service.GetObject(typeof(Echoer), "/org/freedesktop/Test/Echoer"); + System.Console.WriteLine(echoer.Echo("Hello world!")); + + return 0; + } + } +} -- cgit