public ThirdPartyDistributionAPIController(ShopDbContext shopDb, IOptions <ThirdConfig> poptions, IMapper mapper) : base(shopDb) { this.shopDb = shopDb; this.thirdConfig = poptions.Value; this.parameter = new ExThirdPartyDistributionParameter(thirdConfig); this._mapper = mapper; }
public ThirdServer(ShopDbContext shopDb, ThirdConfig options) { this.shopDb = ZRui.Web.BLL.DbContextFactory.ShopDb; this.parameter = new ExThirdPartyDistributionParameter(options); this.thirdoptions = options; }