Mono bindings
Adam Lofts
adam.lofts at gmail.com
Wed Mar 1 15:29:11 PST 2006
Hi,
On 3/1/06, Rémi Cardona <remi.cardona at free.fr> wrote:
> I was having some issues with the old bindings, I'll try your new ones
> as soon as I can. How do they compare in terms of code writing? Is there
> some documentation in the tarball? A small tutorial?
There is an "test/example" in the test directory, though is slightly obscure
in providing a server and client in the same process and calling methods
using MethodInfo.Invoke ().
Essentially, define an interface with the [Interface ("a.b.c")] attribute.
[Interface ("a.b.c")]
interface IExample {
void MyMethod (string s, int a);
}
Then,
Service service = new Service ("my.serivce.name", Bus.SessionBus);
IExample remote = service.Get<IExample> ("/path/to/the/object");
remote.MyMethod ("hello", 102);
will call a method on the session bus.
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20060301/8ece7ace/attachment.html
More information about the dbus
mailing list