Soenneker.Queue.Client 4.0.3082

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.3082
                    
NuGet\Install-Package Soenneker.Queue.Client -Version 4.0.3082
                    
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.3082" />
                    
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.3082" />
                    
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.3082
                    
#r "nuget: Soenneker.Queue.Client, 4.0.3082"
                    
#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.3082
                    
#: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.3082
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Queue.Client&version=4.0.3082
                    
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.3083 0 8/31/2026
4.0.3082 0 8/31/2026
4.0.3081 0 8/31/2026
4.0.3080 0 8/31/2026
4.0.3079 34 8/31/2026
4.0.3078 35 8/30/2026
4.0.3077 38 8/30/2026
4.0.3076 31 8/30/2026
4.0.3075 35 8/30/2026
4.0.3074 38 8/30/2026
4.0.3073 39 8/30/2026
4.0.3072 41 8/29/2026
4.0.3071 40 8/29/2026
4.0.3070 36 8/29/2026
4.0.3069 42 8/29/2026
4.0.3068 61 8/26/2026
4.0.3067 75 8/26/2026
4.0.3066 72 8/26/2026
4.0.3065 75 8/25/2026
4.0.3064 88 8/22/2026
Loading failed