NQueue 1.12.0-beta06
This is a prerelease version of NQueue.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package NQueue --version 1.12.0-beta06
NuGet\Install-Package NQueue -Version 1.12.0-beta06
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.12.0-beta06" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NQueue --version 1.12.0-beta06
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NQueue, 1.12.0-beta06"
#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.12.0-beta06&prerelease // Install NQueue as a Cake Tool #tool nuget:?package=NQueue&version=1.12.0-beta06&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Cronos (>= 0.7.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 6.0.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Diagnostics.DiagnosticSource (>= 6.0.1)
- System.Linq.Async (>= 4.1.1)
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.14.1 | 67 | 11/16/2024 |
1.14.1-beta01 | 108 | 11/14/2024 |
1.14.0 | 69 | 11/14/2024 |
1.14.0-beta3 | 246 | 10/25/2024 |
1.14.0-beta2 | 251 | 10/9/2024 |
1.14.0-beta1 | 79 | 10/9/2024 |
1.13.0 | 1,189 | 7/31/2024 |
1.13.0-beta01 | 102 | 7/29/2024 |
1.12.0 | 79 | 7/26/2024 |
1.12.0-beta06 | 671 | 7/24/2024 |
1.12.0-beta05 | 99 | 7/24/2024 |
1.12.0-beta04 | 67 | 7/24/2024 |
1.12.0-beta03 | 84 | 7/23/2024 |
1.12.0-beta02 | 87 | 7/23/2024 |
1.12.0-beta01 | 86 | 7/23/2024 |
1.11.0 | 107 | 6/13/2024 |
1.11.0-beta03 | 399 | 6/11/2024 |
1.11.0-beta02 | 85 | 6/11/2024 |
1.11.0-beta01 | 63 | 6/11/2024 |
1.10.0 | 90 | 6/11/2024 |
1.10.0-beta1 | 381 | 5/31/2024 |
1.9.0 | 607 | 4/18/2024 |
1.8.0 | 890 | 2/18/2024 |
1.8.0-beta02 | 115 | 2/18/2024 |
1.8.0-beta01 | 104 | 2/17/2024 |
1.7.0 | 120 | 2/17/2024 |
1.7.0-beta01 | 119 | 2/11/2024 |
1.6.2 | 129 | 2/6/2024 |
1.6.2-beta01 | 104 | 2/6/2024 |
1.6.1-beta03 | 172 | 1/31/2024 |
1.6.1-beta02 | 93 | 1/31/2024 |
1.6.1-beta01 | 95 | 1/31/2024 |
1.6.0 | 524 | 1/29/2024 |
1.6.0-beta02 | 125 | 1/26/2024 |
1.6.0-beta01 | 111 | 1/24/2024 |
1.5.0 | 416 | 1/18/2024 |
1.5.0-beta01 | 87 | 1/18/2024 |
1.4.0 | 122 | 1/17/2024 |
1.4.0-beta02 | 102 | 1/17/2024 |
1.4.0-beta01 | 84 | 1/17/2024 |
1.3.1 | 151 | 1/16/2024 |
1.3.0 | 146 | 1/13/2024 |
1.3.0-beta04 | 114 | 1/13/2024 |
1.3.0-beta03 | 84 | 1/13/2024 |
1.3.0-beta02 | 88 | 1/13/2024 |
1.3.0-beta01 | 114 | 1/4/2024 |
1.2.1 | 477 | 12/31/2023 |
1.2.1-beta1 | 133 | 12/29/2023 |
1.2.0 | 443 | 12/11/2023 |
1.2.0-beta006 | 140 | 12/9/2023 |
1.2.0-beta005 | 104 | 12/9/2023 |
1.2.0-beta004 | 85 | 12/9/2023 |
1.2.0-beta003 | 90 | 12/9/2023 |
1.2.0-beta002 | 106 | 12/9/2023 |
1.2.0-beta001 | 104 | 12/9/2023 |
1.1.5-beta002 | 216 | 12/3/2023 |
1.1.5-beta001 | 102 | 12/2/2023 |
1.1.4 | 227 | 12/1/2023 |
1.1.4-beta001 | 155 | 11/30/2023 |
1.1.3 | 332 | 11/16/2023 |
1.1.3-alpha01 | 99 | 11/15/2023 |
1.1.2 | 124 | 11/14/2023 |
1.1.2-alpha01 | 92 | 11/13/2023 |
1.1.1 | 176 | 11/11/2023 |
1.1.0 | 118 | 11/11/2023 |
1.0.0 | 157 | 11/9/2023 |
0.0.1-alpha-019 | 170 | 11/7/2023 |
0.0.1-alpha-018 | 104 | 11/7/2023 |
0.0.1-alpha-017 | 94 | 11/7/2023 |
0.0.1-alpha-016 | 114 | 11/7/2023 |
0.0.1-alpha-015 | 99 | 11/6/2023 |
0.0.1-alpha-014 | 94 | 11/6/2023 |
0.0.1-alpha-013 | 109 | 11/5/2023 |
0.0.1-alpha-011 | 101 | 11/5/2023 |
0.0.1-alpha-010 | 298 | 10/28/2023 |
0.0.1-alpha-008 | 123 | 10/27/2023 |
0.0.1-alpha-007 | 112 | 10/26/2023 |
0.0.1-alpha-006 | 99 | 10/26/2023 |
0.0.1-alpha-005 | 112 | 10/26/2023 |
0.0.1-alpha-004 | 98 | 10/26/2023 |
0.0.1-alpha-003 | 120 | 10/25/2023 |
0.0.1-alpha-002 | 107 | 10/25/2023 |
0.0.1-alpha-001 | 148 | 10/22/2023 |