コード例 #1
0
 public ChatCore()
 {
     accessTokenStorage    = DependencyResolver.Get <IAccessTokenStorage>();
     displayMessageService = DependencyResolver.Get <IDisplayMessageService>();
     sender          = DependencyResolver.Get <ISender>();
     pingIdGenerator = DependencyResolver.Get <IPingIdGenerator>();
     pingIdGenerator.PingAnswered = true;
 }
コード例 #2
0
 internal SignInManager(IOptions <BangumiOptions> bangumiOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage)
 {
     _bangumiOptions        = bangumiOptionsAccesser.Value;
     _authorizationProvider = authorizationProvider;
     _accessTokenStorage    = accessTokenStorage;
 }
コード例 #3
0
 public AccessTokenAuthorizer(ICredentialsProvider credentialsProvider, IAccessTokenStorage tokenStorage)
 {
     _credentialsProvider = credentialsProvider;
     _tokenStorage        = tokenStorage;
 }
コード例 #4
0
 public DistributedCacheAccessTokenStorageTests()
 {
     _sut = new DistributedCacheAccessTokenStorage(CreateInMemoryDistributedCache());
 }
コード例 #5
0
 public WeiboClient(IOptions <WeiboOptions> weiboOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage)
 {
     _signInManager = new SignInManager(weiboOptionsAccesser, authorizationProvider, accessTokenStorage);
 }
コード例 #6
0
 public AccessTokenAccessor(IAccessTokenClient client, IAccessTokenStorage storage)
 {
     _client  = client;
     _storage = storage;
 }
コード例 #7
0
 internal SignInManager(IOptions <WeiboOptions> weiboOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage)
 {
     _weiboOptions          = weiboOptionsAccesser.Value;
     _authorizationProvider = authorizationProvider;
     _accessTokenStorage    = accessTokenStorage;
 }
コード例 #8
0
 public AccessTokenController(RetrieveUsers userRetriever, IAccessTokenStorage storage)
 {
     _storage       = storage;
     _userRetriever = userRetriever;
 }
コード例 #9
0
 public Sender()
 {
     accessTokenStorage = DependencyResolver.Get <IAccessTokenStorage>();
     pingIdGenerator    = DependencyResolver.Get <IPingIdGenerator>();
     disconnector       = DependencyResolver.Get <IDisconnector>();
 }
コード例 #10
0
ファイル: BangumiClient.cs プロジェクト: h82258652/HN.Bangumi
 public BangumiClient(IOptions <BangumiOptions> bangumiOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage)
 {
     _bangumiOptionsAccesser = bangumiOptionsAccesser;
     _signInManager          = new SignInManager(bangumiOptionsAccesser, authorizationProvider, accessTokenStorage);
 }