diff options
author | Jon Trowbridge <trow@ximian.com> | 2004-08-31 03:59:14 +0000 |
---|---|---|
committer | Jon Trowbridge <trow@ximian.com> | 2004-08-31 03:59:14 +0000 |
commit | 4a77a2dd972e817a08a4571220c8406709af8c48 (patch) | |
tree | 9a4ce9513836303b870b0f266f18b76900caa186 /mono/Handler.cs | |
parent | 3a78ce17957de8f56b33bd0d25c2974c740a3b8b (diff) |
2004-08-30 Jon Trowbridge <trow@ximian.com>
* mono/BusDriver.cs: Added. This is a class for interacting with
the org.freedesktop.DBus service.
* mono/Message.cs: Added a mechanism to expose the message that is
currently being dispatched via the static Message.Current
property. Added Message.Sender and Message.Destination
properties.
* mono/Handler.cs: Expose the dispatched message via
Message.Current when handling method calls.
* mono/Service.cs: Expose the dispatched message via
Message.Current when handling signal emissions.
* mono/Connection.cs: Bind dbus_bus_get_base_service via the
Connection.BaseService property.
Diffstat (limited to 'mono/Handler.cs')
-rw-r--r-- | mono/Handler.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/Handler.cs b/mono/Handler.cs index 91569e94..9696a4d3 100644 --- a/mono/Handler.cs +++ b/mono/Handler.cs @@ -177,11 +177,15 @@ namespace DBus } MethodInfo method = interfaceProxy.GetMethod(methodCall.Key); + + Message.Push (methodCall); // Now call the method. FIXME: Error handling object [] args = methodCall.Arguments.GetParameters(method); object retVal = method.Invoke(this.handledObject, args); + Message.Pop (); + // Create the reply and send it MethodReturn methodReturn = new MethodReturn(methodCall); methodReturn.Arguments.AppendResults(method, retVal, args); |