Browse Source

调整

master
杨雷 6 months ago
parent
commit
01b55874fc
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      TelpoPush.Position.Worker/Program.cs

+ 4
- 3
TelpoPush.Position.Worker/Program.cs View File

@@ -6,6 +6,7 @@ using TelpoDataService.Util.Clients;
using TelpoPush.Position.Worker; using TelpoPush.Position.Worker;
using TelpoPush.Position.Worker.Common; using TelpoPush.Position.Worker.Common;
using TelpoPush.Position.Worker.Handlers; using TelpoPush.Position.Worker.Handlers;
using TelpoPush.Position.Worker.Models.Config;
using TelpoPush.Position.Worker.Service.Cache; using TelpoPush.Position.Worker.Service.Cache;
using TelpoPush.Position.Worker.Service.Mq; using TelpoPush.Position.Worker.Service.Mq;


@@ -62,9 +63,9 @@ try
var builder = Host.CreateApplicationBuilder(args); var builder = Host.CreateApplicationBuilder(args);


var config = builder.Configuration; var config = builder.Configuration;
//builder.Services.Configure<PositionConfig>(config.GetSection("PositionConfig"));
//builder.Services.Configure<ServiceConfig>(config.GetSection("ServiceConfig"));
//builder.Services.Configure<RedisConfig>(config.GetSection("Redis"));
builder.Services.Configure<PositionConfig>(config.GetSection("PositionConfig"));
builder.Services.Configure<ServiceConfig>(config.GetSection("ServiceConfig"));
builder.Services.Configure<RedisConfig>(config.GetSection("Redis"));


JsonSerializerSettings setting = new JsonSerializerSettings(); JsonSerializerSettings setting = new JsonSerializerSettings();
JsonConvert.DefaultSettings = () => JsonConvert.DefaultSettings = () =>


Loading…
Cancel
Save