コード例 #1
0
 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;
 }
コード例 #2
0
 public ThirdServer(ShopDbContext shopDb, ThirdConfig options)
 {
     this.shopDb       = ZRui.Web.BLL.DbContextFactory.ShopDb;
     this.parameter    = new ExThirdPartyDistributionParameter(options);
     this.thirdoptions = options;
 }