NQueue 1.17.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NQueue --version 1.17.0                
NuGet\Install-Package NQueue -Version 1.17.0                
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.17.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NQueue --version 1.17.0                
#r "nuget: NQueue, 1.17.0"                
#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.
// Install NQueue as a Cake Addin
#addin nuget:?package=NQueue&version=1.17.0

// Install NQueue as a Cake Tool
#tool nuget:?package=NQueue&version=1.17.0                

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. 
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.18.0 322 15 days ago
1.18.0-beta02 239 16 days ago
1.18.0-beta01 188 17 days ago
1.17.0 864 2 months ago
1.16.1 371 3 months ago
1.16.1-beta01 88 3 months ago
1.16.0 112 3 months ago
1.16.0-beta01 86 3 months ago
1.15.0 357 4 months ago
1.15.0-beta03 89 4 months ago
1.15.0-beta02 77 4 months ago
1.15.0-beta01 76 4 months ago
1.14.1 95 4 months ago
1.14.1-beta01 169 4 months ago
1.14.0 96 4 months ago
1.14.0-beta3 260 5 months ago
1.14.0-beta2 261 5 months ago
1.14.0-beta1 90 5 months ago
1.13.0 1,264 8 months ago
1.13.0-beta01 109 8 months ago
1.12.0 92 8 months ago
1.12.0-beta06 679 8 months ago
1.12.0-beta05 106 8 months ago
1.12.0-beta04 75 8 months ago
1.12.0-beta03 93 8 months ago
1.12.0-beta02 94 8 months ago
1.12.0-beta01 93 8 months ago
1.11.0 119 9 months ago
1.11.0-beta03 403 9 months ago
1.11.0-beta02 91 9 months ago
1.11.0-beta01 71 9 months ago
1.10.0 98 9 months ago
1.10.0-beta1 385 10 months ago
1.9.0 615 4/18/2024
1.8.0 907 2/18/2024
1.8.0-beta02 124 2/18/2024
1.8.0-beta01 112 2/17/2024
1.7.0 130 2/17/2024
1.7.0-beta01 128 2/11/2024
1.6.2 137 2/6/2024
1.6.2-beta01 111 2/6/2024
1.6.1-beta03 176 1/31/2024
1.6.1-beta02 97 1/31/2024
1.6.1-beta01 99 1/31/2024
1.6.0 530 1/29/2024
1.6.0-beta02 129 1/26/2024
1.6.0-beta01 118 1/24/2024
1.5.0 422 1/18/2024
1.5.0-beta01 91 1/18/2024
1.4.0 128 1/17/2024
1.4.0-beta02 108 1/17/2024
1.4.0-beta01 88 1/17/2024
1.3.1 157 1/16/2024
1.3.0 153 1/13/2024
1.3.0-beta04 118 1/13/2024
1.3.0-beta03 94 1/13/2024
1.3.0-beta02 93 1/13/2024
1.3.0-beta01 118 1/4/2024
1.2.1 484 12/31/2023
1.2.1-beta1 138 12/29/2023
1.2.0 449 12/11/2023
1.2.0-beta006 144 12/9/2023
1.2.0-beta005 109 12/9/2023
1.2.0-beta004 90 12/9/2023
1.2.0-beta003 96 12/9/2023
1.2.0-beta002 110 12/9/2023
1.2.0-beta001 108 12/9/2023
1.1.5-beta002 220 12/3/2023
1.1.5-beta001 106 12/2/2023
1.1.4 233 12/1/2023
1.1.4-beta001 159 11/30/2023
1.1.3 339 11/16/2023
1.1.3-alpha01 105 11/15/2023
1.1.2 130 11/14/2023
1.1.2-alpha01 96 11/13/2023
1.1.1 182 11/11/2023
1.1.0 126 11/11/2023
1.0.0 164 11/9/2023
0.0.1-alpha-019 174 11/7/2023
0.0.1-alpha-018 108 11/7/2023
0.0.1-alpha-017 98 11/7/2023
0.0.1-alpha-016 118 11/7/2023
0.0.1-alpha-015 103 11/6/2023
0.0.1-alpha-014 99 11/6/2023
0.0.1-alpha-013 113 11/5/2023
0.0.1-alpha-011 107 11/5/2023
0.0.1-alpha-010 302 10/28/2023
0.0.1-alpha-008 127 10/27/2023
0.0.1-alpha-007 116 10/26/2023
0.0.1-alpha-006 109 10/26/2023
0.0.1-alpha-005 116 10/26/2023
0.0.1-alpha-004 102 10/26/2023
0.0.1-alpha-003 124 10/25/2023
0.0.1-alpha-002 113 10/25/2023
0.0.1-alpha-001 152 10/22/2023