mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 16:00:10 +01:00
23 lines
469 B
C#
23 lines
469 B
C#
namespace Foo
|
|
{
|
|
using System;
|
|
using DBus;
|
|
using Gtk;
|
|
|
|
public class EchoServer
|
|
{
|
|
public static int Main(string [] args)
|
|
{
|
|
Application.Init();
|
|
|
|
Connection connection = Bus.GetSessionBus();
|
|
Service service = new Service(connection, "org.freedesktop.Test");
|
|
Echoer echoer = new Echoer();
|
|
service.RegisterObject(echoer, "/org/freedesktop/Test/Echoer");
|
|
|
|
Application.Run();
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
}
|