RabbitMQ.Bus.Autofac 0.0.1

用于在asp.net core mvc中使用aotufac进行RabbitMQ.Bus的注册。

There is a newer version of this package available.
See the version list below for details.
Install-Package RabbitMQ.Bus.Autofac -Version 0.0.1
dotnet add package RabbitMQ.Bus.Autofac --version 0.0.1
<PackageReference Include="RabbitMQ.Bus.Autofac" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RabbitMQ.Bus.Autofac --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
public IServiceProvider ConfigureServices(IServiceCollection services)
{
    services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
    services.AddRabbitMQBus("amqp://guest:guest@127.0.0.1:5672/", options => options.AddAutofac(services));
    var container = new ContainerBuilder();
    container.Populate(services);
    return new AutofacServiceProvider(container.Build());
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }
    app.UseRabbitMQBus(true);
    app.UseMvc();
}
public IServiceProvider ConfigureServices(IServiceCollection services)
{
    services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
    services.AddRabbitMQBus("amqp://guest:guest@127.0.0.1:5672/", options => options.AddAutofac(services));
    var container = new ContainerBuilder();
    container.Populate(services);
    return new AutofacServiceProvider(container.Build());
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app.UseDeveloperExceptionPage();
    }
    app.UseRabbitMQBus(true);
    app.UseMvc();
}

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.6 494 11/5/2018
1.0.5.1 423 10/18/2018
1.0.5 210 10/18/2018
1.0.3 207 10/18/2018
1.0.1 294 10/14/2018
1.0.0 491 9/27/2018
0.0.10 291 9/13/2018
0.0.9 235 9/7/2018
0.0.8 610 7/5/2018
0.0.4 289 6/28/2018
0.0.3 358 6/27/2018
0.0.2 374 6/26/2018
0.0.1 266 6/26/2018
Show less