Пример #1
0
        public LiveProvider(IPersister <LiveToken> persister)
        {
            persister.NotNull("persister");
            _persister = persister;

            var token = _persister.Load();

            if (token != null)
            {
                _refreshTokenInfo = new RefreshTokenInfo(token.Value);
            }
        }
Пример #2
0
        public DropboxProvider(IPersister <DropboxToken> persiter)
        {
            persiter.NotNull("persister");
            _persister = persiter;

            var token = _persister.Load();

            if (token != null)
            {
                _finalLogin = token.Value;
            }
        }