Пример #1
0
 public MiniProgramsDataSeedContributor(
     IWeChatAppRepository weChatAppRepository,
     IGuidGenerator guidGenerator)
 {
     _weChatAppRepository = weChatAppRepository;
     _guidGenerator       = guidGenerator;
 }
Пример #2
0
 public LoginAppService(
     LoginService loginService,
     ACodeService aCodeService,
     SignInManager <IdentityUser> signInManager,
     IDataFilter dataFilter,
     IConfiguration configuration,
     IHttpClientFactory httpClientFactory,
     IUserInfoRepository userInfoRepository,
     IWeChatMiniProgramAsyncLocal weChatMiniProgramAsyncLocal,
     IWeChatAppRepository weChatAppRepository,
     IWeChatAppUserRepository weChatAppUserRepository,
     IMiniProgramLoginNewUserCreator miniProgramLoginNewUserCreator,
     IMiniProgramLoginProviderProvider miniProgramLoginProviderProvider,
     IDistributedCache <MiniProgramPcLoginAuthorizationCacheItem> pcLoginAuthorizationCache,
     IDistributedCache <MiniProgramPcLoginUserLimitCacheItem> pcLoginUserLimitCache,
     IOptions <IdentityOptions> identityOptions,
     IdentityUserManager identityUserManager)
 {
     _loginService                     = loginService;
     _aCodeService                     = aCodeService;
     _signInManager                    = signInManager;
     _dataFilter                       = dataFilter;
     _configuration                    = configuration;
     _httpClientFactory                = httpClientFactory;
     _userInfoRepository               = userInfoRepository;
     _weChatMiniProgramAsyncLocal      = weChatMiniProgramAsyncLocal;
     _weChatAppRepository              = weChatAppRepository;
     _weChatAppUserRepository          = weChatAppUserRepository;
     _miniProgramLoginNewUserCreator   = miniProgramLoginNewUserCreator;
     _miniProgramLoginProviderProvider = miniProgramLoginProviderProvider;
     _pcLoginAuthorizationCache        = pcLoginAuthorizationCache;
     _pcLoginUserLimitCache            = pcLoginUserLimitCache;
     _identityOptions                  = identityOptions;
     _identityUserManager              = identityUserManager;
 }
 public WeChatMiniProgramGrantValidator(
     IMiniProgramLoginProviderProvider miniProgramLoginProviderProvider,
     IWeChatAppRepository weChatAppRepository,
     IOptions <IdentityOptions> identityOptions,
     IdentityUserManager identityUserManager)
 {
     _miniProgramLoginProviderProvider = miniProgramLoginProviderProvider;
     _weChatAppRepository = weChatAppRepository;
     _identityOptions     = identityOptions;
     _identityUserManager = identityUserManager;
 }
Пример #4
0
 public ProfileAppService(
     LoginService loginService,
     IOptions <IdentityOptions> identityOptions,
     IdentityUserManager identityUserManager,
     IJsonSerializer jsonSerializer,
     IWeChatAppRepository weChatAppRepository)
 {
     _loginService        = loginService;
     _identityOptions     = identityOptions;
     _identityUserManager = identityUserManager;
     _jsonSerializer      = jsonSerializer;
     _weChatAppRepository = weChatAppRepository;
 }
Пример #5
0
 public WeChatAppRepositoryTests()
 {
     _weChatAppRepository = GetRequiredService <IWeChatAppRepository>();
 }
Пример #6
0
 public WeChatAppAppService(IWeChatAppRepository repository) : base(repository)
 {
     _repository = repository;
 }
 public static Task <WeChatApp> GetMiniProgramAppAsync(this IWeChatAppRepository weChatAppRepository, Guid id)
 {
     return(weChatAppRepository.GetAsync(x => x.Id == id && x.Type == WeChatAppType.MiniProgram));
 }
 public static Task <WeChatApp> FindMiniProgramAppByNameAsync(this IWeChatAppRepository weChatAppRepository,
                                                              [NotNull] string name)
 {
     return(weChatAppRepository.FindAsync(x => x.Name == name && x.Type == WeChatAppType.MiniProgram));
 }
 public static Task <WeChatApp> FindMiniProgramAppByAppIdAsync(this IWeChatAppRepository weChatAppRepository,
                                                               [NotNull] string appId)
 {
     return(weChatAppRepository.FindAsync(x => x.AppId == appId && x.Type == WeChatAppType.MiniProgram));
 }
Пример #10
0
 public CorpAppService(IApplicationConfigService configService, IWeChatAppRepository repository)
 {
     _configService = configService;
     _repository    = repository;
 }