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 597 1/2/2026
1.23.5 159 12/31/2025
1.23.4 273 12/29/2025
1.23.3 116 12/29/2025
1.23.2 100 12/28/2025
1.23.1 97 12/28/2025
1.23.0 101 12/28/2025
1.23.0-beta04 123 12/26/2025
1.23.0-beta03 167 12/25/2025
1.23.0-beta02 171 12/24/2025
1.23.0-beta01 170 12/24/2025
1.22.1 376 12/17/2025
1.22.0 424 12/16/2025
1.22.0-beta02 285 12/16/2025
1.22.0-beta01 264 12/16/2025
1.21.0 179 12/12/2025
1.20.0 433 12/11/2025
1.20.0-beta1 426 12/11/2025
1.19.0 1,486 6/9/2025
1.19.0-beta01 314 6/9/2025
1.18.0 1,415 3/6/2025
1.18.0-beta02 311 3/5/2025
1.18.0-beta01 270 3/4/2025
1.17.0 1,707 1/24/2025
1.16.1 484 12/19/2024
1.16.1-beta01 150 12/19/2024
1.16.0 198 12/17/2024
1.16.0-beta01 141 12/17/2024
1.15.0 475 12/4/2024
1.15.0-beta03 141 12/2/2024
1.15.0-beta02 158 12/2/2024
1.15.0-beta01 140 12/2/2024
1.14.1 186 11/16/2024
1.14.1-beta01 245 11/14/2024
1.14.0 173 11/14/2024
1.14.0-beta3 313 10/25/2024
1.14.0-beta2 337 10/9/2024
1.14.0-beta1 138 10/9/2024
1.13.0 1,375 7/31/2024
1.13.0-beta01 164 7/29/2024
1.12.0 179 7/26/2024
1.12.0-beta06 738 7/24/2024
1.12.0-beta05 153 7/24/2024
1.12.0-beta04 132 7/24/2024
1.12.0-beta03 164 7/23/2024
1.12.0-beta02 176 7/23/2024
1.12.0-beta01 137 7/23/2024
1.11.0 203 6/13/2024
1.11.0-beta03 484 6/11/2024
1.11.0-beta02 143 6/11/2024
1.11.0-beta01 135 6/11/2024
1.10.0 190 6/11/2024
1.10.0-beta1 461 5/31/2024
1.9.0 707 4/18/2024
1.8.0 990 2/18/2024
1.8.0-beta02 185 2/18/2024
1.8.0-beta01 177 2/17/2024
1.7.0 205 2/17/2024
1.7.0-beta01 172 2/11/2024
1.6.2 237 2/6/2024
1.6.2-beta01 159 2/6/2024
1.6.1-beta03 241 1/31/2024
1.6.1-beta02 156 1/31/2024
1.6.1-beta01 156 1/31/2024
1.6.0 606 1/29/2024
1.6.0-beta02 217 1/26/2024
1.6.0-beta01 165 1/24/2024
1.5.0 530 1/18/2024
1.5.0-beta01 146 1/18/2024
1.4.0 200 1/17/2024
1.4.0-beta02 171 1/17/2024
1.4.0-beta01 152 1/17/2024
1.3.1 240 1/16/2024
1.3.0 232 1/13/2024
1.3.0-beta04 202 1/13/2024
1.3.0-beta03 176 1/13/2024
1.3.0-beta02 159 1/13/2024
1.3.0-beta01 200 1/4/2024
1.2.1 575 12/31/2023
1.2.1-beta1 217 12/29/2023
1.2.0 557 12/11/2023
1.2.0-beta006 206 12/9/2023
1.2.0-beta005 159 12/9/2023
1.2.0-beta004 176 12/9/2023
1.2.0-beta003 179 12/9/2023
1.2.0-beta002 186 12/9/2023
1.2.0-beta001 184 12/9/2023
1.1.5-beta002 287 12/3/2023
1.1.5-beta001 170 12/2/2023
1.1.4 316 12/1/2023
1.1.4-beta001 224 11/30/2023
1.1.3 414 11/16/2023
1.1.3-alpha01 153 11/15/2023
1.1.2 194 11/14/2023
1.1.2-alpha01 161 11/13/2023
1.1.1 278 11/11/2023
1.1.0 214 11/11/2023
1.0.0 236 11/9/2023
0.0.1-alpha-019 268 11/7/2023
0.0.1-alpha-018 170 11/7/2023
0.0.1-alpha-017 158 11/7/2023
0.0.1-alpha-016 189 11/7/2023
0.0.1-alpha-015 171 11/6/2023
0.0.1-alpha-014 155 11/6/2023
0.0.1-alpha-013 177 11/5/2023
0.0.1-alpha-011 152 11/5/2023
0.0.1-alpha-010 374 10/28/2023
0.0.1-alpha-008 186 10/27/2023
0.0.1-alpha-007 177 10/26/2023
0.0.1-alpha-006 193 10/26/2023
0.0.1-alpha-005 165 10/26/2023
0.0.1-alpha-004 192 10/26/2023
0.0.1-alpha-003 205 10/25/2023
0.0.1-alpha-002 181 10/25/2023
0.0.1-alpha-001 219 10/22/2023