diff options
author | Owen Fraser-Green <owen@discobabe.net> | 2004-03-23 12:10:32 +0000 |
---|---|---|
committer | Owen Fraser-Green <owen@discobabe.net> | 2004-03-23 12:10:32 +0000 |
commit | c916037773d7d3d8d37ca2c5a8899b7b728e377d (patch) | |
tree | 21c37372ab9795583e724e8459578b7fe0be330b /mono/example/EchoClient.cs | |
parent | 2195cf0dbde2ae26b5a684c6d914c1711f44c28d (diff) |
First checkin of the Mono bindings.
Diffstat (limited to 'mono/example/EchoClient.cs')
-rw-r--r-- | mono/example/EchoClient.cs | 19 |
1 files changed, 19 insertions, 0 deletions
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; + } + } +} |