blob: dc20771ad07c7acaeeb66d34b4decbfcb30fe8e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}
}
}
|