public interface IDBusConnections The application's shared connections to the session and system buses.
Remarks
DBusServiceCollectionExtensions.AddRunicDBus registers one instance for the application. Each bus is connected when first requested and shared by every caller; the service provider closes the connections when it is disposed. A connection that closed, for example because the bus restarted, is replaced on the next request. Do not dispose a shared connection.
Methods
GetAsync
ValueTask<PlatformResult<DBusConnection>> GetAsync(DBusBus bus, CancellationToken cancellationToken = default) Gets the shared connection to a bus, connecting on first use.
Returns
The connection, or why there is none, as DBusConnection.ConnectAsync reports it.