Table of Contents

Interface IMethodHandler

Namespace
Tmds.DBus.Protocol
Assembly
Tmds.DBus.Protocol.dll

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

string

Methods

HandleMethodAsync(MethodContext)

Handles a method call.

ValueTask HandleMethodAsync(MethodContext context)

Parameters

context MethodContext

The method context containing the request information and methods to reply.

Returns

ValueTask

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

message Message

Message being handled.

Returns

bool