/// <summary>
 ///
 /// </summary>
 /// <param name="constr"></param>
 /// <param name="userIds"></param>
 public TradeSyncContextService(string constr)
 {
     _configService = new SynchronizationConfigService(constr);
     SyncContext    = new SyncContext();
     AutoMapperFactory.Register();
 }
 public TradeSyncContextService(SynchronizationConfigService configService)
 {
     _configService = configService ?? throw new Exception("配置服务为空");
     SyncContext    = new SyncContext();
 }