Table of Contents

Class DBusConnectionOptions

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

Configuration options for a D-Bus client connection.

public class DBusConnectionOptions
Inheritance
DBusConnectionOptions
Inherited Members

Constructors

DBusConnectionOptions()

Initializes a new instance of the DBusConnectionOptions class.

protected DBusConnectionOptions()

DBusConnectionOptions(string)

Initializes a new instance of the DBusConnectionOptions class.

public DBusConnectionOptions(string address)

Parameters

address string

The address to connect to.

Properties

AutoConnect

Gets or sets a whether to automatically connect when the connection is first used.

public bool AutoConnect { get; set; }

Property Value

bool

Methods

SetupAsync(CancellationToken)

Sets up the connection. This method may be overridden in a derived class.

protected virtual ValueTask<DBusConnectionOptions.SetupResult> SetupAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

The cancellation token.

Returns

ValueTask<DBusConnectionOptions.SetupResult>

A ValueTask containing the setup result.

Teardown(object?)

Tears down the connection. This method may be overridden in a derived class.

protected virtual void Teardown(object? token)

Parameters

token object

The TeardownToken returned from SetupAsync(CancellationToken).