00001 namespace Foo
00002 {
00003 using System;
00004 using DBus;
00005 using Gtk;
00006
00007 public class EchoServer
00008 {
00009 public static int Main(string [] args)
00010 {
00011 Application.Init();
00012
00013 Connection connection = Bus.GetSessionBus();
00014 Service service = new Service(connection, "org.freedesktop.Test");
00015 Echoer echoer = new Echoer();
00016 service.RegisterObject(echoer, "/org/freedesktop/Test/Echoer");
00017
00018 Application.Run();
00019
00020 return 0;
00021 }
00022 }
00023 }