SmartTender.MessageBroker.NetFramework
1.0.17
Suggested Alternatives
SmartTender.MessageBroker.NetFramework 1.0.20
Additional DetailsCan not support different R/W connections
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package SmartTender.MessageBroker.NetFramework --version 1.0.17
NuGet\Install-Package SmartTender.MessageBroker.NetFramework -Version 1.0.17
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.17" />
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.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SmartTender.MessageBroker.NetFramework, 1.0.17"
#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.17 // Install SmartTender.MessageBroker.NetFramework as a Cake Tool #tool nuget:?package=SmartTender.MessageBroker.NetFramework&version=1.0.17
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
.NETFramework 4.6.2
- Microsoft.AspNet.Mvc (>= 5.2.7)
- Newtonsoft.Json (>= 13.0.1)
- Ninject (>= 3.3.4)
- SmartTender.MessageBroker (>= 1.0.17)
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.17 | 145 | 8/13/2024 | |
1.0.16 | 125 | 8/7/2024 | |
1.0.15 | 123 | 8/7/2024 | |
1.0.14 | 129 | 8/2/2024 | |
1.0.13 | 117 | 8/2/2024 | |
1.0.12 | 133 | 6/19/2024 | |
1.0.11 | 127 | 5/27/2024 | |
1.0.10 | 194 | 4/29/2024 | |
1.0.9 | 137 | 4/29/2024 | |
1.0.8 | 139 | 4/25/2024 | |
1.0.7 | 130 | 4/25/2024 | |
1.0.6 | 137 | 4/25/2024 | |
1.0.5 | 140 | 4/25/2024 | |
1.0.4 | 146 | 4/24/2024 | |
1.0.3 | 148 | 4/23/2024 | |
1.0.2 | 154 | 4/23/2024 |