public ChatCore() { accessTokenStorage = DependencyResolver.Get <IAccessTokenStorage>(); displayMessageService = DependencyResolver.Get <IDisplayMessageService>(); sender = DependencyResolver.Get <ISender>(); pingIdGenerator = DependencyResolver.Get <IPingIdGenerator>(); pingIdGenerator.PingAnswered = true; }
internal SignInManager(IOptions <BangumiOptions> bangumiOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage) { _bangumiOptions = bangumiOptionsAccesser.Value; _authorizationProvider = authorizationProvider; _accessTokenStorage = accessTokenStorage; }
public AccessTokenAuthorizer(ICredentialsProvider credentialsProvider, IAccessTokenStorage tokenStorage) { _credentialsProvider = credentialsProvider; _tokenStorage = tokenStorage; }
public DistributedCacheAccessTokenStorageTests() { _sut = new DistributedCacheAccessTokenStorage(CreateInMemoryDistributedCache()); }
public WeiboClient(IOptions <WeiboOptions> weiboOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage) { _signInManager = new SignInManager(weiboOptionsAccesser, authorizationProvider, accessTokenStorage); }
public AccessTokenAccessor(IAccessTokenClient client, IAccessTokenStorage storage) { _client = client; _storage = storage; }
internal SignInManager(IOptions <WeiboOptions> weiboOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage) { _weiboOptions = weiboOptionsAccesser.Value; _authorizationProvider = authorizationProvider; _accessTokenStorage = accessTokenStorage; }
public AccessTokenController(RetrieveUsers userRetriever, IAccessTokenStorage storage) { _storage = storage; _userRetriever = userRetriever; }
public Sender() { accessTokenStorage = DependencyResolver.Get <IAccessTokenStorage>(); pingIdGenerator = DependencyResolver.Get <IPingIdGenerator>(); disconnector = DependencyResolver.Get <IDisconnector>(); }
public BangumiClient(IOptions <BangumiOptions> bangumiOptionsAccesser, IAuthorizationProvider authorizationProvider, IAccessTokenStorage accessTokenStorage) { _bangumiOptionsAccesser = bangumiOptionsAccesser; _signInManager = new SignInManager(bangumiOptionsAccesser, authorizationProvider, accessTokenStorage); }