Class DBusConnectionOptions
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
addressstringThe 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
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
cancellationTokenCancellationTokenThe 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
tokenobjectThe TeardownToken returned from SetupAsync(CancellationToken).