ABP vNext framework CAP EventBus module that integrated the CAP with the ABP framework.
-
Install the following NuGet packages. (see how)
- EasyAbp.Abp.EventBus.CAP
-
Add
DependsOn(typeof(AbpEventBusCapXxxModule))
attribute to configure the module dependencies. (see how) -
Configure the CAP.
public override void ConfigureServices(ServiceConfigurationContext context) { var configuration = context.Services.GetConfiguration(); context.AddCapEventBus(capOptions => { // capOptions.UseInMemoryStorage(); capOptions.UseRabbitMQ("localhost"); // Configure the host of RabbitMQ capOptions.UseDashboard(); // CAP provides dashboard pages after the version 2.x }); }
See the ABP distributed event bus document and the CAP document.