summaryrefslogtreecommitdiffstats
path: root/mono/example/Echoer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mono/example/Echoer.cs')
-rw-r--r--mono/example/Echoer.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mono/example/Echoer.cs b/mono/example/Echoer.cs
new file mode 100644
index 00000000..bc5a843d
--- /dev/null
+++ b/mono/example/Echoer.cs
@@ -0,0 +1,16 @@
+namespace Foo
+{
+ using System;
+ using DBus;
+
+ [Interface("org.freedesktop.Test.Echoer")]
+ public class Echoer
+ {
+ [Method]
+ public virtual string Echo(string message)
+ {
+ System.Console.WriteLine("I received: " + message);
+ return "Reply: " + message;
+ }
+ }
+}