Ejemplo n.º 1
0
 private GetTokenInfo(ITokenRepository tokenRepository, IUserRepository userRepository, ITokenInfoExtractor tokenInfoExtractor,
                      string token, string appKey, string device)
 {
     _device             = device;
     _token              = token;
     _appKey             = appKey;
     _tokenRepository    = tokenRepository;
     _userRepository     = userRepository;
     _tokenInfoExtractor = tokenInfoExtractor;
     ValidateInstance();
     InvalidTokenExceptionCreator = () => InvalidTokenException.Create(_token, _appKey, _device);
 }
Ejemplo n.º 2
0
 public static async Task <User> Execute(ITokenRepository tokenRepository, IUserRepository userRepository, ITokenInfoExtractor tokenInfoExtractor,
                                         string token, string appKey, string device) =>
 await new GetTokenInfo(tokenRepository, userRepository, tokenInfoExtractor, token, appKey, device).Do();