Soenneker.Enums.ServiceBusQueue 11.0.750

Prefix Reserved
dotnet add package Soenneker.Enums.ServiceBusQueue --version 11.0.750
                    
NuGet\Install-Package Soenneker.Enums.ServiceBusQueue -Version 11.0.750
                    
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="11.0.750" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Enums.ServiceBusQueue" Version="11.0.750" />
                    
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 11.0.750
                    
#r "nuget: Soenneker.Enums.ServiceBusQueue, 11.0.750"
                    
#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@11.0.750
                    
#: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=11.0.750
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.ServiceBusQueue&version=11.0.750
                    
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 net11.0 is compatible. 
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 50 11/18/2026
11.0.749 47 11/18/2026
11.0.748 105 11/11/2026
11.0.747 88 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 122 10/15/2026
4.0.739 102 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 106 10/12/2026
4.0.730 111 10/12/2026
4.0.729 115 10/11/2026
4.0.728 105 10/11/2026
4.0.727 226 9/24/2026
4.0.726 109 9/24/2026
Loading failed

Updated Soenneker.SmartEnum.Named to 11.0.55