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 Volo.Abp.EventBus.Kafka;
|
|
using Volo.Abp.Kafka;
|
|
using Volo.Abp.Modularity;
|
|
|
|
namespace DistDemoApp
|
|
{
|
|
#if DISTDEMO_USE_MONGODB
|
|
[DependsOn(
|
|
typeof(DistDemoAppMongoDbInfrastructureModule),
|
|
typeof(AbpEventBusKafkaModule),
|
|
typeof(DistDemoAppSharedModule)
|
|
)]
|
|
#else
|
|
[DependsOn(
|
|
typeof(DistDemoAppEntityFrameworkCoreInfrastructureModule),
|
|
typeof(AbpEventBusKafkaModule),
|
|
typeof(DistDemoAppSharedModule)
|
|
)]
|
|
#endif
|
|
public class DistDemoAppMongoDbKafkaModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
#if DISTDEMO_USE_MONGODB
|
|
context.ConfigureDistDemoMongoInfrastructure();
|
|
#else
|
|
context.ConfigureDistDemoEntityFrameworkInfrastructure();
|
|
#endif
|
|
|
|
Configure<AbpKafkaOptions>(options =>
|
|
{
|
|
options.Connections.Default.BootstrapServers = "localhost:9092";
|
|
});
|
|
|
|
Configure<AbpKafkaEventBusOptions>(options =>
|
|
{
|
|
options.ConnectionName = "Default";
|
|
options.TopicName = "DistDemoTopic";
|
|
options.GroupId = "DistDemoApp";
|
|
});
|
|
}
|
|
}
|
|
}
|
|
|