Soenneker.Queue.Client 4.0.3121

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.3121
                    
NuGet\Install-Package Soenneker.Queue.Client -Version 4.0.3121
                    
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.3121" />
                    
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.3121" />
                    
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.3121
                    
#r "nuget: Soenneker.Queue.Client, 4.0.3121"
                    
#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.3121
                    
#: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.3121
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Queue.Client&version=4.0.3121
                    
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.3124 75 9/17/2026
4.0.3123 73 9/16/2026
4.0.3122 71 9/16/2026
4.0.3121 68 9/16/2026
4.0.3120 67 9/16/2026
4.0.3119 75 9/16/2026
4.0.3118 71 9/16/2026
4.0.3117 74 9/15/2026
4.0.3116 75 9/15/2026
4.0.3115 87 9/13/2026
4.0.3114 84 9/13/2026
4.0.3113 91 9/13/2026
4.0.3112 97 9/13/2026
4.0.3111 85 9/13/2026
4.0.3110 77 9/13/2026
4.0.3109 84 9/12/2026
4.0.3108 84 9/12/2026
4.0.3107 95 9/9/2026
4.0.3106 96 9/9/2026
4.0.3105 97 9/9/2026
Loading failed