Shuttle.Esb 12.1.1 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Standard 2.0
Install-Package Shuttle.Esb -Version 12.1.1
dotnet add package Shuttle.Esb --version 12.1.1
<PackageReference Include="Shuttle.Esb" Version="12.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Shuttle.Esb --version 12.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Shuttle.Esb, 12.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Shuttle.Esb as a Cake Addin
#addin nuget:?package=Shuttle.Esb&version=12.1.1

// Install Shuttle.Esb as a Cake Tool
#tool nuget:?package=Shuttle.Esb&version=12.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Documentation

Please visit out official documentation for more information.

Getting Started

Start a new Console Application project and select a Shuttle.Esb queue implementation from the supported queues:

PM> Install-Package Shuttle.Esb.AzureMQ

Now we'll need select one of the supported containers:

PM> Install-Package Shuttle.Core.Autofac

We'll also need to host our endpoint using a worker service:

PM> Install-Package Shuttle.Core.WorkerService

Next we'll implement our endpoint in order to start listening on our queue:

internal class Program
{
	private static void Main()
	{
		ServiceHost.Run<Host>();
	}
}

public class Host : IServiceHost
{
	private IServiceBus _bus;

    public void Start()
    {
        var containerBuilder = new ContainerBuilder();
        var registry = new AutofacComponentRegistry(containerBuilder);

        registry.Register<IAzureStorageConfiguration, DefaultAzureStorageConfiguration>();
        registry.RegisterServiceBus();

        _bus = new AutofacComponentResolver(containerBuilder.Build())
            .Resolve<IServiceBus>().Start();
    }

	public void Stop()
	{
		_bus.Dispose();
	}
}

A bit of configuration is going to be needed to help things along:

<configuration>
	<configSections>
		<section name="serviceBus" type="Shuttle.Esb.ServiceBusSection, Shuttle.Esb"/>
	</configSections>

	<appSettings>
		<add key="azure" value="UseDevelopmentStorage=true;" />
	</appSettings>

	<serviceBus>
		<inbox workQueueUri="azuremq://azure/shuttle-server-work" 
		       deferredQueueUri="azuremq://azure/shuttle-server-deferred"
		       errorQueueUri="azuremq://azure/shuttle-error" />
	</serviceBus>
</configuration>

Send a command message for processing

bus.Send(new RegisterMemberCommand
{
    UserName = "user-name",
    EMailAddress = "user@domain.com"
});

Publish an event message when something interesting happens

bus.Publish(new MemberRegisteredEvent
{
    UserName = "user-name"
});

Subscribe to those interesting events

resolver.Resolve<ISubscriptionManager>().Subscribe<MemberRegisteredEvent>();

Handle any messages

public class RegisterMemberHandler : IMessageHandler<RegisterMemberCommand>
{
    public RegisterMemberHandler(IDependency dependency)
    {
    }

	public void ProcessMessage(IHandlerContext<RegisterMemberCommand> context)
	{
        // perform member registration

		context.Publish(new MemberRegisteredEvent
		{
			UserName = context.Message.UserName
		});
	}
}
public class MemberRegisteredHandler : IMessageHandler<MemberRegisteredEvent>
{
	public void ProcessMessage(IHandlerContext<MemberRegisteredEvent> context)
	{
        // processing
	}
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (16)

Showing the top 5 NuGet packages that depend on Shuttle.Esb:

Package Downloads
Shuttle.Esb.RabbitMQ The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

RabbitMQ implementation for use with Shuttle.Esb.

Shuttle.Esb.Tests The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Test fixtures to facilitate testing of components, such as queues, that relate to Shuttle.Esb.

Shuttle.Esb.Sql.Subscription The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Sql-based implementation of ISubscriptionManager interface for use with Shuttle.Esb.

Shuttle.Esb.FileMQ The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

File-based queue implementation for use with Shuttle.Esb.

Shuttle.Esb.Msmq The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

MSMQ implementation for use with Shuttle.Esb.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
12.1.1 106 5/18/2022
12.1.0 52 5/18/2022
12.0.1 378 4/9/2022
12.0.0 469 3/21/2022
11.2.0 4,223 2/15/2021
11.1.1 267 2/9/2021
11.1.0 313 1/30/2021
11.0.3 5,119 1/17/2021
11.0.2 383 11/27/2020
11.0.1 6,316 7/31/2019
11.0.0 4,397 6/20/2019
10.1.8 1,118 12/26/2018
10.1.7 614 12/9/2018
10.1.6 26,687 10/15/2018
10.1.4 577 10/13/2018
10.1.2 1,082 10/6/2018
10.1.1 1,214 9/19/2018
10.1.0 815 9/17/2018
10.0.10 1,750 7/10/2018
10.0.9 806 7/8/2018
10.0.7 808 4/22/2018
10.0.6 1,021 4/12/2018
10.0.5 1,548 4/8/2018
10.0.3 2,567 2/13/2018
9.1.4 1,083 12/29/2017
9.1.3 773 10/22/2017
9.0.3 819 8/26/2017
9.0.2 1,348 8/6/2017
8.0.14 973 3/23/2018
8.0.13 2,820 12/29/2017
8.0.12 959 7/20/2017
8.0.11 778 7/17/2017
8.0.9 783 7/14/2017
8.0.8 1,034 7/6/2017
8.0.7 1,915 5/15/2017
8.0.5 903 5/7/2017
8.0.4 777 5/6/2017
8.0.3 873 5/6/2017
8.0.1 881 4/23/2017
8.0.0 2,299 3/24/2017
7.0.4 1,788 10/26/2016
7.0.3 1,074 10/4/2016
7.0.1 1,609 9/19/2016
7.0.0 892 9/4/2016
6.2.1 1,263 7/26/2016
6.2.0 982 7/23/2016
6.1.3 1,097 6/6/2016
6.1.2 884 6/4/2016
6.1.1 1,730 6/4/2016
6.1.0 918 6/4/2016
6.0.0 2,221 4/24/2016
5.1.9 1,422 4/3/2016
5.1.6 1,963 3/21/2016