mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 07:50:09 +01:00
16 lines
288 B
C#
16 lines
288 B
C#
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;
|
|
}
|
|
}
|
|
}
|