Table of Contents

Interface IPathMethodHandler

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

Handles D-Bus method calls for a specific object path.

public interface IPathMethodHandler

Properties

HandlesChildPaths

Returns whether the handler also handles child paths.

bool HandlesChildPaths { get; }

Property Value

bool

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. To handle the request asynchronously after this method completes, set DisposesAsynchronously. In this case, you are responsible for disposing the context once handling completes.