mirror of https://github.com/abpframework/abp.git
csharpabpc-sharpframeworkblazoraspnet-coredotnet-coreaspnetcorearchitecturesaasdomain-driven-designangularmulti-tenancy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
43 lines
1.2 KiB
using Rebus.Transport.InMem;
|
|
using Volo.Abp.EventBus.Rebus;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace DistDemoApp
|
|
{
|
|
#if DISTDEMO_USE_MONGODB
|
|
[DependsOn(
|
|
typeof(DistDemoAppMongoDbInfrastructureModule),
|
|
typeof(AbpEventBusRebusModule),
|
|
typeof(DistDemoAppSharedModule)
|
|
)]
|
|
#else
|
|
[DependsOn(
|
|
typeof(DistDemoAppEntityFrameworkCoreInfrastructureModule),
|
|
typeof(AbpEventBusRebusModule),
|
|
typeof(DistDemoAppSharedModule)
|
|
)]
|
|
#endif
|
|
public class DistDemoAppMongoDbRebusModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
PreConfigure<AbpRebusEventBusOptions>(options =>
|
|
{
|
|
options.InputQueueName = "eventbus";
|
|
options.Configurer = rebusConfigurer =>
|
|
{
|
|
rebusConfigurer.Transport(t => t.UseInMemoryTransport(new InMemNetwork(), "eventbus"));
|
|
};
|
|
});
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
#if DISTDEMO_USE_MONGODB
|
|
context.ConfigureDistDemoMongoInfrastructure();
|
|
#else
|
|
context.ConfigureDistDemoEntityFrameworkInfrastructure();
|
|
#endif
|
|
}
|
|
}
|
|
}
|
|
|