public OAuthToken(AuthToken token) { if (token == null) { throw new ArgumentNullException("Token passed to constructor of OAuthToken cannot be null"); } Token = token; }
public OAuthToken() { Token = new AuthToken(); }
public void UpdateToken(AuthToken token) { _repository.Update(token); _repository.Flush(); }
public void StoreNewRequestToken(AuthToken token) { _repository.Save(token); _repository.Flush(); }