SmartTender.MessageBroker.NetFramework 1.0.3

Suggested Alternatives

SmartTender.MessageBroker.NetFramework 1.0.20

Additional Details

Can not support different R/W connections

There is a newer version of this package available.
See the version list below for details.
dotnet add package SmartTender.MessageBroker.NetFramework --version 1.0.3                
NuGet\Install-Package SmartTender.MessageBroker.NetFramework -Version 1.0.3                
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="SmartTender.MessageBroker.NetFramework" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SmartTender.MessageBroker.NetFramework --version 1.0.3                
#r "nuget: SmartTender.MessageBroker.NetFramework, 1.0.3"                
#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.
// Install SmartTender.MessageBroker.NetFramework as a Cake Addin
#addin nuget:?package=SmartTender.MessageBroker.NetFramework&version=1.0.3

// Install SmartTender.MessageBroker.NetFramework as a Cake Tool
#tool nuget:?package=SmartTender.MessageBroker.NetFramework&version=1.0.3                

Smarttender.MessageBroker.AspNetCore NuGet Package

Installation

To use this package, you can install it via NuGet Package Manager or directly add it to your project's dependencies in the .csproj file.

dotnet add package Smarttender.MessageBroker.AspNetCore

Usage

Dependency Injection method

public static class SmartMessageBrokerServicesDi
{
    // Adding required services to the service collection
    public static void AddSmartMessageBroker(this NinjectModule services, string connectionString, Action<BrokerConfig> configureRecievers = null, string customAppName = null);

    // Starting consuming queues
    public static StandardKernel UseSmartMessageBrokerConsumers(this StandardKernel app);
}

DI Registration Examples

Run consumers in startup.cs

		private void configureWebApi(IAppBuilder app)
		{
			var modules = new INinjectModule[]
			{
				new NinjectRegistrations(),
				new ProZorroSaleModules.DalModule(),
				new ProZorroSaleModules.ApiModule(),
				new ProZorroSaleModules.AppModule(),
				new ProZorroSaleModules.ReportingDalModule(),
				new ProZorroSaleModules.DalElasticModule(),
				new ProZorroSaleModules.DalNewDbModule(),
				new ProZorroSaleModules.ReportingModule(),
				new HangfireNinjectModule(),
				new WebApiNinjectRegistrations()
			};
			var settings = new NinjectSettings
			{
				InjectNonPublic = true,
			};
			var kernel = new StandardKernel(settings, modules);
			var config = new HttpConfiguration
			{
				DependencyResolver = new WebApiNinjectDependencyResolver(kernel),
				IncludeErrorDetailPolicy = IncludeErrorDetailPolicy.Always
			};
			config.Formatters.Remove(config.Formatters.JsonFormatter);
			config.Formatters.Insert(0, new SanitizingJsonMediaTypeFormatter());
			config.Formatters.JsonFormatter.SerializerSettings = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore };
			//config.MessageHandlers.Add(new LanguageMessageHandlerWebApi());
			config.MessageHandlers.Add(new LogWebApiHandler());
			config.MessageHandlers.Add(new ProZorroSaleApiLogHandler());
			config.MapHttpAttributeRoutes();
			config.Filters.Add(new ApiFilterAttribute());
			config.Filters.Add(new GlobalApiFilterAttribute());
			app.UseWebApi(config);
			ProzorroSaleSwaggerConfig.Register(config);
			runProZorroSaleSockets(kernel);
			kernel.UseSmartMessageBrokerConsumers();
			//configureWebApiThrottling(config);
		}

Run consumers in startup.cs


public class NinjectRegistrations : NinjectModule
{
	public override void Load()
	{
		//....
		this.AddSmartMessageBroker("amqps://your-rabbitmq-url", 
			x =>
			{
				x.AddCommonQueueAsyncConsumer<FeatureUsingMessageConsumer, FeatureUsingMessage>();
			}, customAppName: "WebTender");
	}
}

Replace "amqps://your-rabbitmq-url" with your actual RabbitMQ connection string.

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
1.0.26 101 11/12/2024
1.0.25 150 9/10/2024
1.0.24 107 9/10/2024
1.0.23 113 9/9/2024
1.0.22 110 9/9/2024
1.0.21 164 8/21/2024
1.0.20 148 8/21/2024
1.0.18 147 8/13/2024 1.0.18 is deprecated because it is no longer maintained and has critical bugs.
1.0.17 145 8/13/2024 1.0.17 is deprecated because it is no longer maintained and has critical bugs.
1.0.16 125 8/7/2024 1.0.16 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 123 8/7/2024 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 129 8/2/2024 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 117 8/2/2024 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 133 6/19/2024 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 127 5/27/2024 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 194 4/29/2024 1.0.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.9 137 4/29/2024 1.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.8 139 4/25/2024 1.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.7 130 4/25/2024 1.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.6 137 4/25/2024 1.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5 140 4/25/2024 1.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4 146 4/24/2024 1.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3 148 4/23/2024 1.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2 154 4/23/2024 1.0.2 is deprecated because it is no longer maintained and has critical bugs.