00001 namespace Foo 00002 { 00003 using System; 00004 using DBus; 00005 00006 public class EchoClient 00007 { 00008 public static int Main(string [] args) 00009 { 00010 Connection connection = Bus.GetSessionBus(); 00011 Service service = Service.Get(connection, "org.freedesktop.Test"); 00012 Echoer echoer = (Echoer) 00013 service.GetObject(typeof(Echoer), "/org/freedesktop/Test/Echoer"); 00014 System.Console.WriteLine(echoer.Echo("Hello world!")); 00015 00016 return 0; 00017 } 00018 } 00019 }