|
@@ -73,7 +73,7 @@ internal static class StartupExtensions
|
|
else if (sharingConfig != null && sharingConfig.CityCode == ConfigurationConsts.LuZhou)//泸州
|
|
else if (sharingConfig != null && sharingConfig.CityCode == ConfigurationConsts.LuZhou)//泸州
|
|
{
|
|
{
|
|
services.AddScoped<ISendTaskDataService, DataSharing.LuZhou.LuZhouSendTaskDataService>();
|
|
services.AddScoped<ISendTaskDataService, DataSharing.LuZhou.LuZhouSendTaskDataService>();
|
|
- services.AddScoped<IPoliceService, HndService>();//110
|
|
|
|
|
|
+ services.AddScoped<IPoliceService, HndService>();//110
|
|
services.AddScoped<ICityStateDataExchangeService, CityStateDataExchangeService>();//市州互转
|
|
services.AddScoped<ICityStateDataExchangeService, CityStateDataExchangeService>();//市州互转
|
|
services.AddScoped<ILuZhou110Service, LuZhou110Service>();//泸州110
|
|
services.AddScoped<ILuZhou110Service, LuZhou110Service>();//泸州110
|
|
services.AddScoped<ILZCityPortalSiteService, LZCityPortalSiteService>();//泸州市政府门户网站
|
|
services.AddScoped<ILZCityPortalSiteService, LZCityPortalSiteService>();//泸州市政府门户网站
|
|
@@ -130,7 +130,8 @@ internal static class StartupExtensions
|
|
.AddValidatorsFromAssembly(typeof(ApplicationStartupExtensions).Assembly);
|
|
.AddValidatorsFromAssembly(typeof(ApplicationStartupExtensions).Assembly);
|
|
|
|
|
|
//mq
|
|
//mq
|
|
- services.AddMq(configuration);
|
|
|
|
|
|
+ // services.AddMq(configuration);
|
|
|
|
+ services.AddMq(() => configuration.GetSection(nameof(MqConfiguration)).Get<MqConfiguration>());
|
|
|
|
|
|
services.Configure<KestrelServerOptions>(options =>
|
|
services.Configure<KestrelServerOptions>(options =>
|
|
{
|
|
{
|