示例#1
0
 public string GetAuthUri(string sessionId)
 {
     try
     {
         var uri = this.EbayServiceLowLevel.GetAuthenticationUri(sessionId);
         return(uri.AbsoluteUri);
     }
     catch (Exception exception)
     {
         var ebayException = new EbayAuthException(string.Format("Error. Was called with({0})", sessionId), exception);
         LogTraceException(ebayException.Message, ebayException);
         throw ebayException;
     }
 }
示例#2
0
        public string FetchUserToken(string sessionId)
        {
            var mark = new Guid().ToString();

            try
            {
                var userToken = this.EbayServiceLowLevel.FetchToken(sessionId, mark);
                return(userToken);
            }
            catch (Exception exception)
            {
                var ebayException = new EbayAuthException(string.Format("Error. Was called with({0})", sessionId), exception);
                LogTraceException(ebayException.Message, ebayException);
                throw ebayException;
            }
        }
示例#3
0
        public string GetUserSessionId()
        {
            var mark = new Guid().ToString();

            try
            {
                var sessionId = this.EbayServiceLowLevel.GetSessionId(mark);
                return(sessionId);
            }
            catch (Exception exception)
            {
                var ebayException = new EbayAuthException(string.Format("Error. Was called with()"), exception);
                LogTraceException(ebayException.Message, ebayException);
                throw ebayException;
            }
        }