Soenneker.Queue.Client 4.0.3103

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.3103
                    
NuGet\Install-Package Soenneker.Queue.Client -Version 4.0.3103
                    
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.3103" />
                    
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.3103" />
                    
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.3103
                    
#r "nuget: Soenneker.Queue.Client, 4.0.3103"
                    
#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.3103
                    
#: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.3103
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Queue.Client&version=4.0.3103
                    
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.3107 73 9/9/2026
4.0.3106 74 9/9/2026
4.0.3105 73 9/9/2026
4.0.3104 73 9/8/2026
4.0.3103 85 9/8/2026
4.0.3102 88 9/8/2026
4.0.3101 84 9/8/2026
4.0.3100 91 9/7/2026
4.0.3099 92 9/7/2026
4.0.3098 100 9/7/2026
4.0.3097 95 9/7/2026
4.0.3096 94 9/5/2026
4.0.3095 86 9/5/2026
4.0.3094 88 9/4/2026
4.0.3093 88 9/4/2026
4.0.3092 90 9/4/2026
4.0.3091 94 9/4/2026
4.0.3090 92 9/4/2026
4.0.3089 83 9/4/2026
4.0.3086 91 9/3/2026
Loading failed