NQueue 1.23.6

dotnet add package NQueue --version 1.23.6
                    
NuGet\Install-Package NQueue -Version 1.23.6
                    
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="NQueue" Version="1.23.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NQueue" Version="1.23.6" />
                    
Directory.Packages.props
<PackageReference Include="NQueue" />
                    
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 NQueue --version 1.23.6
                    
#r "nuget: NQueue, 1.23.6"
                    
#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 NQueue@1.23.6
                    
#: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=NQueue&version=1.23.6
                    
Install as a Cake Addin
#tool nuget:?package=NQueue&version=1.23.6
                    
Install as a Cake Tool

Implementation of the outbox pattern in dotnet.

Use Postgres

    CREATE DATABASE my_database;
    -- in the new database:
    CREATE USER nqueueuser PASSWORD 'ihSH3jqeVb7giIgOkohX';
    CREATE SCHEMA IF NOT EXISTS nqueue AUTHORIZATION nqueueuser;
  services.AddHttpClient();
  services.AddNQueueHostedService((s, config) =>
    {
      var cnnBuilder = new NpgsqlConnectionStringBuilder()
      {
          Host = "localhost",
          Database = "my_database",
          Username = "nqueueuser",
          Password = "ihSH3jqeVb7giIgOkohX",
      };
      cnnBuilder.SslMode = cnnBuilder.Host == "localhost" ? SslMode.Disable : SslMode.VerifyFull;
      config.CreateDbConnection = () => new ValueTask<DbConnection>(new NpgsqlConnection(cnnBuilder.ToString()));
      config.LocalHttpAddresses = s.GetRequiredService<IServer>().Features.Get<IServerAddressesFeature>().Addresses.ToList();
      return default;
    });

Enqueue your first work item:

    private readonly INQueueClient _nQueueClient; // populated by IOC
    public async Task MyMethod() {
        await _nQueueClient.Enqueue(await _nQueueClient.Localhost("/MyEndpoint"));
    }

Use SQL Server

Warning: This no longer is working. If you're interested in maintaining it, please let me know.

  services.AddNQueueHostedService((s, config) =>
    {
      config.CreateDbConnection = () =>
      {
          var cnnBuilder = new SqlConnectionStringBuilder
          {
              DataSource = "localhost,15533",
              InitialCatalog = "NQueueSample",
              UserID = "NQueueUser",
              Password = "ihSH3jqeVb7giIgOkohX"
          };
          cnnBuilder.Encrypt = !cnnBuilder.DataSource.StartsWith("localhost");
          return new ValueTask<DbConnection>(new SqlConnection(cnnBuilder.ToString()));
      };   
      return default;
    });
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NQueue:

Package Downloads
NQueue.Extensions.OpenTelemetry

Sets up Open Telemetry tracing for NQueue

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.23.6 57 1/2/2026
1.23.5 111 12/31/2025
1.23.4 210 12/29/2025
1.23.3 104 12/29/2025
1.23.2 91 12/28/2025
1.23.1 84 12/28/2025
1.23.0 92 12/28/2025
1.23.0-beta04 118 12/26/2025
1.23.0-beta03 164 12/25/2025
1.23.0-beta02 168 12/24/2025
1.23.0-beta01 167 12/24/2025
1.22.1 345 12/17/2025
1.22.0 416 12/16/2025
1.22.0-beta02 283 12/16/2025
1.22.0-beta01 261 12/16/2025
1.21.0 168 12/12/2025
1.20.0 426 12/11/2025
1.20.0-beta1 417 12/11/2025
1.19.0 1,471 6/9/2025
1.19.0-beta01 307 6/9/2025
1.18.0 1,405 3/6/2025
1.18.0-beta02 299 3/5/2025
1.18.0-beta01 258 3/4/2025
1.17.0 1,689 1/24/2025
1.16.1 474 12/19/2024
1.16.1-beta01 142 12/19/2024
1.16.0 187 12/17/2024
1.16.0-beta01 139 12/17/2024
1.15.0 461 12/4/2024
1.15.0-beta03 133 12/2/2024
1.15.0-beta02 150 12/2/2024
1.15.0-beta01 132 12/2/2024
1.14.1 174 11/16/2024
1.14.1-beta01 243 11/14/2024
1.14.0 164 11/14/2024
1.14.0-beta3 306 10/25/2024
1.14.0-beta2 332 10/9/2024
1.14.0-beta1 135 10/9/2024
1.13.0 1,364 7/31/2024
1.13.0-beta01 156 7/29/2024
1.12.0 170 7/26/2024
1.12.0-beta06 730 7/24/2024
1.12.0-beta05 150 7/24/2024
1.12.0-beta04 126 7/24/2024
1.12.0-beta03 160 7/23/2024
1.12.0-beta02 168 7/23/2024
1.12.0-beta01 132 7/23/2024
1.11.0 192 6/13/2024
1.11.0-beta03 478 6/11/2024
1.11.0-beta02 138 6/11/2024
1.11.0-beta01 131 6/11/2024
1.10.0 181 6/11/2024
1.10.0-beta1 453 5/31/2024
1.9.0 695 4/18/2024
1.8.0 981 2/18/2024
1.8.0-beta02 180 2/18/2024
1.8.0-beta01 174 2/17/2024
1.7.0 192 2/17/2024
1.7.0-beta01 168 2/11/2024
1.6.2 229 2/6/2024
1.6.2-beta01 152 2/6/2024
1.6.1-beta03 233 1/31/2024
1.6.1-beta02 148 1/31/2024
1.6.1-beta01 148 1/31/2024
1.6.0 593 1/29/2024
1.6.0-beta02 209 1/26/2024
1.6.0-beta01 158 1/24/2024
1.5.0 519 1/18/2024
1.5.0-beta01 138 1/18/2024
1.4.0 193 1/17/2024
1.4.0-beta02 162 1/17/2024
1.4.0-beta01 142 1/17/2024
1.3.1 226 1/16/2024
1.3.0 221 1/13/2024
1.3.0-beta04 193 1/13/2024
1.3.0-beta03 167 1/13/2024
1.3.0-beta02 154 1/13/2024
1.3.0-beta01 195 1/4/2024
1.2.1 565 12/31/2023
1.2.1-beta1 207 12/29/2023
1.2.0 547 12/11/2023
1.2.0-beta006 200 12/9/2023
1.2.0-beta005 153 12/9/2023
1.2.0-beta004 166 12/9/2023
1.2.0-beta003 170 12/9/2023
1.2.0-beta002 178 12/9/2023
1.2.0-beta001 176 12/9/2023
1.1.5-beta002 280 12/3/2023
1.1.5-beta001 159 12/2/2023
1.1.4 307 12/1/2023
1.1.4-beta001 213 11/30/2023
1.1.3 412 11/16/2023
1.1.3-alpha01 147 11/15/2023
1.1.2 186 11/14/2023
1.1.2-alpha01 155 11/13/2023
1.1.1 272 11/11/2023
1.1.0 206 11/11/2023
1.0.0 230 11/9/2023
0.0.1-alpha-019 258 11/7/2023
0.0.1-alpha-018 162 11/7/2023
0.0.1-alpha-017 151 11/7/2023
0.0.1-alpha-016 181 11/7/2023
0.0.1-alpha-015 164 11/6/2023
0.0.1-alpha-014 147 11/6/2023
0.0.1-alpha-013 172 11/5/2023
0.0.1-alpha-011 149 11/5/2023
0.0.1-alpha-010 368 10/28/2023
0.0.1-alpha-008 178 10/27/2023
0.0.1-alpha-007 169 10/26/2023
0.0.1-alpha-006 186 10/26/2023
0.0.1-alpha-005 158 10/26/2023
0.0.1-alpha-004 182 10/26/2023
0.0.1-alpha-003 199 10/25/2023
0.0.1-alpha-002 174 10/25/2023
0.0.1-alpha-001 210 10/22/2023