Class DBusServer
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class DBusServer : Object, Initable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
DBusServer
- Implements
- Inherited Members
Constructors
DBusServer(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public DBusServer(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DBusServer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DBusServer(CreationData data)
Parameters
dataCreationData
DBusServer(DBusServerHandle)
protected DBusServer(DBusServerHandle handle)
Parameters
handleDBusServerHandle
Fields
ActivePropertyDefinition
public static readonly Property<bool, DBusServer> ActivePropertyDefinition
Field Value
AddressPropertyDefinition
public static readonly Property<string?, DBusServer> AddressPropertyDefinition
Field Value
AuthenticationObserverPropertyDefinition
public static readonly Property<DBusAuthObserver?, DBusServer> AuthenticationObserverPropertyDefinition
Field Value
ClientAddressPropertyDefinition
public static readonly Property<string?, DBusServer> ClientAddressPropertyDefinition
Field Value
FlagsPropertyDefinition
public static readonly Property<DBusServerFlags, DBusServer> FlagsPropertyDefinition
Field Value
GuidPropertyDefinition
public static readonly Property<string?, DBusServer> GuidPropertyDefinition
Field Value
NewConnectionSignal
Signal Descriptor for OnNewConnection.
public static readonly ReturningSignal<DBusServer, DBusServer.NewConnectionSignalArgs, bool> NewConnectionSignal
Field Value
Properties
Active
public bool Active { get; }
Property Value
Address
public string? Address { get; }
Property Value
AuthenticationObserver
public DBusAuthObserver? AuthenticationObserver { get; }
Property Value
ClientAddress
public string? ClientAddress { get; }
Property Value
Flags
public DBusServerFlags Flags { get; }
Property Value
Guid
public string? Guid { get; }
Property Value
Methods
GetClientAddress()
[Version("2.26")]
public string GetClientAddress()
Returns
GetFlags()
[Version("2.26")]
public DBusServerFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
GetGuid()
[Version("2.26")]
public string GetGuid()
Returns
Init(Cancellable?)
[Version("2.22")]
public bool Init(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
IsActive()
[Version("2.26")]
public bool IsActive()
Returns
NewFromPointer(nint, bool)
Creates a new managed DBusServer instance for a given pointer.
public static DBusServer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewSync(string, DBusServerFlags, string, DBusAuthObserver?, Cancellable?)
[Version("2.26")]
public static DBusServer NewSync(string address, DBusServerFlags flags, string guid, DBusAuthObserver? observer, Cancellable? cancellable)
Parameters
addressstringflagsDBusServerFlagsguidstringobserverDBusAuthObservercancellableCancellable
Returns
NewWithProperties(ConstructArgument[])
Creates a new DBusServer and sets the properties specified by the construct arguments.
public static DBusServer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Start()
[Version("2.26")]
public void Start()
Stop()
[Version("2.26")]
public void Stop()
Events
OnNewConnection
public event ReturningSignalHandler<DBusServer, DBusServer.NewConnectionSignalArgs, bool> OnNewConnection