CodeBrix.Platform.LinuxDBus.MitLicenseForever 1.0.252.1225

dotnet add package CodeBrix.Platform.LinuxDBus.MitLicenseForever --version 1.0.252.1225
                    
NuGet\Install-Package CodeBrix.Platform.LinuxDBus.MitLicenseForever -Version 1.0.252.1225
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeBrix.Platform.LinuxDBus.MitLicenseForever" Version="1.0.252.1225" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeBrix.Platform.LinuxDBus.MitLicenseForever" Version="1.0.252.1225" />
                    
Directory.Packages.props
<PackageReference Include="CodeBrix.Platform.LinuxDBus.MitLicenseForever" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CodeBrix.Platform.LinuxDBus.MitLicenseForever --version 1.0.252.1225
                    
#r "nuget: CodeBrix.Platform.LinuxDBus.MitLicenseForever, 1.0.252.1225"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CodeBrix.Platform.LinuxDBus.MitLicenseForever@1.0.252.1225
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CodeBrix.Platform.LinuxDBus.MitLicenseForever&version=1.0.252.1225
                    
Install as a Cake Addin
#tool nuget:?package=CodeBrix.Platform.LinuxDBus.MitLicenseForever&version=1.0.252.1225
                    
Install as a Cake Tool

CodeBrix.Platform.LinuxDBus

A fully managed, low-level D-Bus protocol library for Linux, targeting .NET 10. CodeBrix.Platform.LinuxDBus connects to the session/system bus (or any transport the D-Bus specification allows), sends and receives raw D-Bus messages, and exposes the wire-level reader/writer primitives that higher-level consumers build on top of. CodeBrix.Platform.LinuxDBus has no dependencies other than .NET, and is provided as a .NET 10 library and associated CodeBrix.Platform.LinuxDBus.MitLicenseForever NuGet package.

CodeBrix.Platform.LinuxDBus supports applications and assemblies that target Microsoft .NET version 10.0 and later. Microsoft .NET version 10.0 is a Long-Term Supported (LTS) version of .NET, and was released on Nov 11, 2025; and will be actively supported by Microsoft until Nov 14, 2028. Please update your C#/.NET code and projects to the latest LTS version of Microsoft .NET.

Installation

dotnet add package CodeBrix.Platform.LinuxDBus.MitLicenseForever

Note that the NuGet package ID and the namespace are different - there is no package named plain CodeBrix.Platform.LinuxDBus:

  • NuGet package ID: CodeBrix.Platform.LinuxDBus.MitLicenseForever
  • Assembly and primary namespace: CodeBrix.Platform.LinuxDBus - i.e. using CodeBrix.Platform.LinuxDBus;

XML documentation (IntelliSense) ships alongside the assembly. The package brings in no NuGet dependencies of its own - .NET itself is all it needs.

CodeBrix.Platform.LinuxDBus supports:

  • Connecting to any D-Bus bus — session bus, system bus, or an arbitrary address string
  • Sending and awaiting D-Bus method calls
  • Subscribing to D-Bus signals via MatchRule / AddMatchAsync
  • Registering method handlers to expose D-Bus objects
  • Reading and writing every D-Bus wire-level type: basic types, arrays, dictionaries, structs, variants, object paths, signatures, and Unix file descriptors
  • Safe variant handling via VariantValue / Variant
  • Generating D-Bus introspection XML from registered object paths

Sample Code

Connecting to the session bus and calling org.freedesktop.DBus.ListNames

using System;
using System.Threading.Tasks;
using CodeBrix.Platform.LinuxDBus;

public static class ListNamesExample
{
    public static async Task RunAsync()
    {
        using var connection = new Connection(Address.Session!);
        await connection.ConnectAsync();

        // The generic overload returns the reply, decoded by the reader you pass in.
        string[] names = await connection.CallMethodAsync(
            CreateMessage(connection),
            (Message message, object state) =>
                message.GetBodyReader().ReadArrayOfString());

        foreach (string name in names)
        {
            Console.WriteLine(name);
        }
    }

    // MessageWriter is a ref struct, so build the message in a non-async helper.
    private static MessageBuffer CreateMessage(Connection connection)
    {
        using var writer = connection.GetMessageWriter();
        writer.WriteMethodCallHeader(
            destination: Connection.DBusServiceName,
            path:        Connection.DBusObjectPath,
            @interface:  Connection.DBusInterface,
            member:      "ListNames");
        return writer.CreateMessage();
    }
}

Documentation

The NuGet package includes AGENT-README.txt, a complete API reference and usage guide written for AI coding agents - point your agent at that file when it is writing code against this library.

Additional sample code and usage examples are available in the CodeBrix.Platform.LinuxDBus.Tests project: https://github.com/ellisnet/CodeBrix.Platform.LinuxDBus/tree/main/tests/CodeBrix.Platform.LinuxDBus.Tests

License

CodeBrix.Platform.LinuxDBus is licensed under the MIT License - see the LICENSE file.

For licensing and provenance information about the open source code included in this package, see THIRD-PARTY-NOTICES.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on CodeBrix.Platform.LinuxDBus.MitLicenseForever:

Package Downloads
CodeBrix.Platform.Runtime.Skia.FrameBuffer.ApacheLicenseForever

Linux framebuffer Skia runtime host for CodeBrix.Platform applications.

CodeBrix.Platform.Runtime.Skia.X11.ApacheLicenseForever

X11 Skia runtime host for CodeBrix.Platform applications.

CodeBrix.Platform.Runtime.Skia.Wayland.ApacheLicenseForever

Native Wayland Skia runtime host for CodeBrix.Platform applications (requires a Wayland compositor). Renders with Vulkan by default (VK_KHR_wayland_surface) - with OpenGL (ES/EGL) and software rendering options available.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.252.1225 0 9/9/2026
1.0.242.987 135 8/30/2026
1.0.165.1241 701 6/14/2026
1.0.117 131 4/29/2026