27 lines
887 B
C#
27 lines
887 B
C#
|
|
using Abp.Dependency;
|
|||
|
|
using DeviceDetectorNET.Parser.Device;
|
|||
|
|
using Serilog;
|
|||
|
|
using Volo.Abp.Modularity;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.Host
|
|||
|
|
{
|
|||
|
|
public class JiSheCollectBusHostModule : AbpModule
|
|||
|
|
{
|
|||
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|||
|
|
{
|
|||
|
|
var services = context.Services;
|
|||
|
|
var configuration = IocManager.Instance.Resolve<IConfiguration>();
|
|||
|
|
//services.AddApplication<JiSheCollectBusMqConsumerModule>();
|
|||
|
|
|
|||
|
|
//services.AddApplication<JiSheCollectBusNetworkModule>();
|
|||
|
|
|
|||
|
|
services.AddPluginApplications();
|
|||
|
|
services.AddStackExchangeRedisCache(options =>
|
|||
|
|
{
|
|||
|
|
options.Configuration = configuration["RedisCache:ConnectionString"];
|
|||
|
|
options.InstanceName = configuration["RedisCache:InstanceName"];
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|