Soenneker.Enums.ServiceBusQueue 4.0.727

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

Soenneker.Enums.ServiceBusQueue

A SmartEnum base for defining an application's Azure Service Bus queue names in one strongly typed place.

Install

dotnet add package Soenneker.Enums.ServiceBusQueue

Define queues

using Soenneker.Enums.ServiceBusQueue;

public sealed class AppQueue : ServiceBusQueue<AppQueue>
{
    public static readonly AppQueue Emails = new("emails", 1);
    public static readonly AppQueue Notifications = new("notifications", 2);

    private AppQueue(string name, int value) : base(name, value)
    {
    }
}

The self-referential generic argument is required: AppQueue derives from ServiceBusQueue<AppQueue>. This allows the underlying SmartEnum implementation to discover the concrete type's static values.

Usage

string queueName = AppQueue.Emails; // implicit conversion returns "emails"

AppQueue parsed = AppQueue.FromName("notifications");

foreach (AppQueue queue in AppQueue.List)
    Console.WriteLine($"{queue.Value}: {queue.Name}");

Use unique integer values. Lowercase plural names such as emails and notifications are the package convention because Name is intended to be passed as the Service Bus entity name; the base class does not enforce the convention or validate Azure naming rules.

FromName and FromValue throw when no match exists. Use TryFromName or TryFromValue when parsing configuration or external input. This package defines identifiers only; it does not create queues, send messages, receive messages, or verify that a configured queue exists.

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
11.0.750 57 11/18/2026
11.0.749 49 11/18/2026
11.0.748 107 11/11/2026
11.0.747 91 11/11/2026
11.0.746 189 10/27/2026
11.0.745 97 10/27/2026
11.0.744 100 10/26/2026
11.0.742 99 10/26/2026
11.0.741 100 10/26/2026
4.0.740 123 10/15/2026
4.0.739 103 10/14/2026
4.0.738 98 10/14/2026
4.0.737 101 10/14/2026
4.0.732 110 10/13/2026
4.0.731 108 10/12/2026
4.0.730 111 10/12/2026
4.0.729 116 10/11/2026
4.0.728 106 10/11/2026
4.0.727 226 9/24/2026
4.0.726 110 9/24/2026
Loading failed

Updated NuGet packages