コード例 #1
0
ファイル: WeixinAppService.cs プロジェクト: sxfkue/SoMall
 public WeixinAppService(
     IGuidGenerator guidGenerator,
     IConfiguration configuration,
     IHttpClientFactory httpClientFactory,
     IPasswordHasher <IdentityUser> passwordHasher,
     ICurrentTenant currentTenant,
     ISettingProvider setting,
     WeixinManager weixinManager,
     IdentityUserStore identityUserStore,
     ICapPublisher capBus,
     IUnitOfWorkManager unitOfWorkManager,
     IAppProvider appProvider, IWeixinApi weixinApi)
 {
     ObjectMapperContext = typeof(WeixinModule);
     _guidGenerator      = guidGenerator;
     _configuration      = configuration;
     _httpClientFactory  = httpClientFactory;
     _passwordHasher     = passwordHasher;
     _currentTenant      = currentTenant;
     _setting            = setting;
     _weixinManager      = weixinManager;
     _identityUserStore  = identityUserStore;
     _capBus             = capBus;
     _unitOfWorkManager  = unitOfWorkManager;
     _appProvider        = appProvider;
     _weixinApi          = weixinApi;
 }
コード例 #2
0
ファイル: WeixinManager.cs プロジェクト: EdwardChange4/SoMall
 public WeixinManager(
     IDistributedCache <AccessTokeCacheItem> tokenCache,
     IRedisClient redisClient,
     IRepository <WechatUserinfo> wechatUserRepository,
     Volo.Abp.ObjectMapping.IObjectMapper mapper,
     ICurrentTenant currentTenant,
     ISettingProvider setting,
     IWeixinApi weixinApi)
 {
     _tokenCache           = tokenCache;
     _redisClient          = redisClient;
     _wechatUserRepository = wechatUserRepository;
     _mapper        = mapper;
     _currentTenant = currentTenant;
     _setting       = setting;
     _weixinApi     = weixinApi;
 }