Soenneker.Queue.Client 4.0.3136

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Queue.Client --version 4.0.3136
                    
NuGet\Install-Package Soenneker.Queue.Client -Version 4.0.3136
                    
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="Soenneker.Queue.Client" Version="4.0.3136" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Queue.Client" Version="4.0.3136" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Queue.Client" />
                    
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 Soenneker.Queue.Client --version 4.0.3136
                    
#r "nuget: Soenneker.Queue.Client, 4.0.3136"
                    
#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 Soenneker.Queue.Client@4.0.3136
                    
#: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=Soenneker.Queue.Client&version=4.0.3136
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Queue.Client&version=4.0.3136
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Queue.Client

Provides cached Azure Queue Storage QueueClient instances through dependency injection and creates a requested queue when it does not exist.

Install

dotnet add package Soenneker.Queue.Client

Configuration

{
  "Azure": {
    "Storage": {
      "Queue": {
        "ConnectionString": "<Azure Storage connection string>"
      }
    }
  }
}

The connection string is read when QueueClientUtil is constructed. The credential must be allowed to inspect and create queues in addition to performing the application’s queue operations.

Registration

using Soenneker.Queue.Client.Registrars;

builder.Services.AddQueueClientUtilAsSingleton();

Singleton registration shares the per-queue client cache across the application. Scoped registration is also available:

builder.Services.AddQueueClientUtilAsScoped();

With scoped registration, each scope owns its queue-client lookup cache, while the underlying cached HTTP transport remains singleton-owned and survives disposal of individual scopes.

Both registration methods use TryAdd; an existing IQueueClientUtil registration is preserved.

Usage

using Azure.Storage.Queues;
using Soenneker.Queue.Client.Abstract;

public sealed class WorkPublisher(IQueueClientUtil queueClients)
{
    public async ValueTask Publish(string json, CancellationToken cancellationToken)
    {
        QueueClient queue = await queueClients.Get("work-items", cancellationToken);
        await queue.SendMessageAsync(json, cancellationToken);
    }
}

Get normalizes the queue name to lowercase, creates the queue if necessary, and caches the resulting QueueClient for the lifetime of the utility. Azure Queue Storage naming rules still apply.

Disposing a scoped utility releases its own cached queue objects but does not evict the shared HTTP client. The DI container owns and disposes the singleton HTTP cache at application shutdown.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.3139 42 10/7/2026
4.0.3138 87 10/1/2026
4.0.3137 89 9/30/2026
4.0.3136 85 9/30/2026
4.0.3135 88 9/30/2026
4.0.3134 92 9/29/2026
4.0.3133 93 9/29/2026
4.0.3132 104 9/25/2026
4.0.3131 97 9/25/2026
4.0.3130 93 9/25/2026
4.0.3129 98 9/25/2026
4.0.3127 88 9/25/2026
4.0.3126 98 9/24/2026
4.0.3125 88 9/24/2026
4.0.3124 106 9/17/2026
4.0.3123 99 9/16/2026
4.0.3122 101 9/16/2026
4.0.3121 91 9/16/2026
4.0.3120 93 9/16/2026
4.0.3119 100 9/16/2026
Loading failed