Пример #1
0
        public Dictionary <string, string> BuildDictionaryForRetreiveToken(RetrieveToken retrieveToken)
        {
            Dictionary <string, string> parameters = new Dictionary <string, string>(1);

            parameters.Add("providerkey", retrieveToken.ProviderKey);
            return(parameters);
        }
Пример #2
0
        public RetrieveTokenResult RetrieveToken(RetrieveToken retrieveToken)
        {
            Dictionary <string, string> parameters = _requestBuilderHelper.BuildDictionaryForRetreiveToken(retrieveToken);

            RetrieveTokenResult retrieveTokenResult = new RetrieveTokenResult();
            XDocument           resultDocument      = GetResultDocument(parameters, Method.GetToken, retrieveTokenResult);

            ResultParser.ParseTokenResult(resultDocument, retrieveTokenResult);

            return(retrieveTokenResult);
        }
Пример #3
0
 public RetrieveTokenResult RetreiveToken(RetrieveToken retrieveToken)
 {
     ValidateObject(retrieveToken);
     return(_httpInterface.RetrieveToken(retrieveToken));
 }