DBusSignalFilter record

Namespace Runic.Platform.Linux.DBus in Runic.Platform.Linux.DBus 0.23.0

public sealed record DBusSignalFilter : IEquatable<DBusSignalFilter>

Inherits or implements IEquatable.

Which signals a subscription receives. Every set field must match.

Constructors

DBusSignalFilter

public DBusSignalFilter()

No documentation.

Properties

Arg0

public string? Arg0 { get; init; }

The first argument, when it is a string.

Arg0Namespace

public string? Arg0Namespace { get; init; }

A namespace of bus or interface names, as the match rule's arg0namespace key: the first argument must be a string that equals it or starts with it followed by a dot. org.example matches org.example and org.example.Player, but not org.examples.

ArgumentPaths

public ImmutableDictionary<int, string> ArgumentPaths { get; init; }

Path arguments by position, from 0 to 63, as the match rule's argNpath keys: the argument at each position must be a string or object path that equals the value, or that is a prefix of the other ending in /. /aa/ matches /aa/, /aa/bb and /, but not /aab.

Arguments

public ImmutableDictionary<int, string> Arguments { get; init; }

String arguments by position, from 0 to 63, as the match rule's argN keys: the argument at each position must be a string equal to the value.

Remarks

Position 0 is the same key as DBusSignalFilter.Arg0; setting both to different values is an error.

Interface

public string? Interface { get; init; }

The signal's interface.

Member

public string? Member { get; init; }

The signal's name.

Path

public DBusObjectPath? Path { get; init; }

The emitting object.

PathNamespace

public DBusObjectPath? PathNamespace { get; init; }

An object and every object below it.

Sender

public string? Sender { get; init; }

The sender's bus name; a well-known name matches its current owner.

Methods

Equals

public bool Equals(DBusSignalFilter? other)

Compares two filters by their keys.

GetHashCode

public override int GetHashCode()

Inherits documentation from Object.GetHashCode.