Soenneker.Enums.ServiceBusQueue 11.0.744

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 11.0.744
                    
NuGet\Install-Package Soenneker.Enums.ServiceBusQueue -Version 11.0.744
                    
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.744" />
                    
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.744" />
                    
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.744
                    
#r "nuget: Soenneker.Enums.ServiceBusQueue, 11.0.744"
                    
#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.744
                    
#: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.744
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Enums.ServiceBusQueue&version=11.0.744
                    
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.752 51 11/25/2026
11.0.750 101 11/18/2026
11.0.749 91 11/18/2026
11.0.748 111 11/11/2026
11.0.747 97 11/11/2026
11.0.746 191 10/27/2026
11.0.745 99 10/27/2026
11.0.744 103 10/26/2026
11.0.742 101 10/26/2026
11.0.741 102 10/26/2026
4.0.740 129 10/15/2026
4.0.739 109 10/14/2026
4.0.738 103 10/14/2026
4.0.737 105 10/14/2026
4.0.732 113 10/13/2026
4.0.731 111 10/12/2026
4.0.730 115 10/12/2026
4.0.729 120 10/11/2026
4.0.728 109 10/11/2026
4.0.727 229 9/24/2026
Loading failed

Updated Multiple NuGet packages