Soenneker.Queue.Client 4.0.3085

Prefix Reserved
dotnet add package Soenneker.Queue.Client --version 4.0.3085
                    
NuGet\Install-Package Soenneker.Queue.Client -Version 4.0.3085
                    
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.3085" />
                    
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.3085" />
                    
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.3085
                    
#r "nuget: Soenneker.Queue.Client, 4.0.3085"
                    
#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.3085
                    
#: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.3085
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Queue.Client&version=4.0.3085
                    
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.3085 29 9/1/2026
4.0.3084 33 9/1/2026
4.0.3083 46 8/31/2026
4.0.3082 37 8/31/2026
4.0.3081 41 8/31/2026
4.0.3080 42 8/31/2026
4.0.3079 47 8/31/2026
4.0.3078 46 8/30/2026
4.0.3077 48 8/30/2026
4.0.3076 40 8/30/2026
4.0.3075 46 8/30/2026
4.0.3074 46 8/30/2026
4.0.3073 47 8/30/2026
4.0.3072 49 8/29/2026
4.0.3071 47 8/29/2026
4.0.3070 43 8/29/2026
4.0.3069 49 8/29/2026
4.0.3068 69 8/26/2026
4.0.3067 83 8/26/2026
4.0.3066 78 8/26/2026
Loading failed