SmartTender.MessageBroker.NetFramework 1.0.9

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.9                
NuGet\Install-Package SmartTender.MessageBroker.NetFramework -Version 1.0.9                
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.9" />                
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.9                
#r "nuget: SmartTender.MessageBroker.NetFramework, 1.0.9"                
#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.9

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

Smarttender.MessageBroker.NetFramework 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.NetFramework

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.AddConsumer<FeatureUsingMessageConsumer, FeatureUsingMessage>();
			}, customAppName: "WebTender");
	}
}

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

Target frameworks

net462

Dependencies

  • Smarttender.MessageBroker (latest)
  • Microsoft.AspNet.Mvc 5.2.7
  • Ninject 3.3.4
  • System.Text.Json 5.0.2
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.25 125 9/10/2024
1.0.24 95 9/10/2024
1.0.23 97 9/9/2024
1.0.22 96 9/9/2024
1.0.21 152 8/21/2024
1.0.20 134 8/21/2024
1.0.18 135 8/13/2024 1.0.18 is deprecated because it is no longer maintained and has critical bugs.
1.0.17 133 8/13/2024 1.0.17 is deprecated because it is no longer maintained and has critical bugs.
1.0.16 114 8/7/2024 1.0.16 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 111 8/7/2024 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 117 8/2/2024 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 104 8/2/2024 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 121 6/19/2024 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 115 5/27/2024 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 182 4/29/2024 1.0.10 is deprecated because it is no longer maintained and has critical bugs.
1.0.9 125 4/29/2024 1.0.9 is deprecated because it is no longer maintained and has critical bugs.
1.0.8 128 4/25/2024 1.0.8 is deprecated because it is no longer maintained and has critical bugs.
1.0.7 119 4/25/2024 1.0.7 is deprecated because it is no longer maintained and has critical bugs.
1.0.6 125 4/25/2024 1.0.6 is deprecated because it is no longer maintained and has critical bugs.
1.0.5 128 4/25/2024 1.0.5 is deprecated because it is no longer maintained and has critical bugs.
1.0.4 134 4/24/2024 1.0.4 is deprecated because it is no longer maintained and has critical bugs.
1.0.3 137 4/23/2024 1.0.3 is deprecated because it is no longer maintained and has critical bugs.
1.0.2 142 4/23/2024 1.0.2 is deprecated because it is no longer maintained and has critical bugs.