All pastes #144989 Raw Edit

Anonymous

public text v1 · immutable
#144989 ·published 2006-08-22 19:45 UTC
rendered paste body
import clr
clr.AddReferenceToFileAndPath("/home/alp/Projects/dbus-sharp/src/NDesk.DBus.dll")
from NDesk.DBus import *
from org.freedesktop.DBus import *

conn = Connection()
opath = ObjectPath("/org/freedesktop/DBus")
name = "org.freedesktop.DBus"

#TODO: DProxy prox = new DProxy (conn, opath, name, typeof (Bus));
prox = DProxy(conn, opath, name, Bus)

#TODO: Bus bus = (Bus)prox.GetTransparentProxy ();
bus = prox.GetTransparentProxy

myName = bus.Hello()
print myName