Interface IMethodHandler
Handles D-Bus method calls for a specific object path. (obsolete)
[Obsolete("Use 'IPathMethodHandler' instead.")]
public interface IMethodHandler
Remarks
Use IPathMethodHandler instead.
Properties
Path
Object path handled by this method handler.
string Path { get; }
Property Value
Methods
HandleMethodAsync(MethodContext)
Handles a method call.
ValueTask HandleMethodAsync(MethodContext context)
Parameters
contextMethodContextThe method context containing the request information and methods to reply.
Returns
Remarks
No additional messages are read from the connection until this method completes when RunMethodHandlerSynchronously(Message) returns true.
RunMethodHandlerSynchronously(Message)
Determines whether to wait for the handler method to finish executing before reading more messages.
bool RunMethodHandlerSynchronously(Message message)
Parameters
messageMessageMessage being handled.