summaryrefslogtreecommitdiffstats
path: root/mono/example/EchoClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/example/EchoClient.cs')
-rw-r--r--mono/example/EchoClient.cs19
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;
+ }
+ }
+}