Rainy.OAuth.OAuthHandler.OAuthHandler C# (CSharp) Method

OAuthHandler() public method

public OAuthHandler ( IAuthenticator auth, ITokenRepository access_token_repo, ITokenRepository request_token_repo, ITokenStore token_store ) : System
auth IAuthenticator
access_token_repo ITokenRepository
request_token_repo ITokenRepository
token_store ITokenStore
return System
        public OAuthHandler(IAuthenticator auth,
		                     ITokenRepository<AccessToken> access_token_repo,
		                     ITokenRepository<RequestToken> request_token_repo,
		                     ITokenStore token_store)
        {
            this.Authenticator = auth;
            this.AccessTokens = access_token_repo;
            this.RequestTokens = request_token_repo;
            this.TokenStore = token_store;

            this.ConsumerStore = new RainyConsumerStore ();
            //this.NonceStore = new DummyNonceStore ();
            // initialize those classes that are not persisted
            // TODO request tokens should be persisted in the future
            //RequestTokens = new SimpleTokenRepository<RequestToken> ();

            SetupInspectors ();
        }