Exemple #1
0
        public Url Create(EbayServiceType serviceType, ServiceEndPointType endPointType)
        {
            switch (serviceType)
            {
            case EbayServiceType.Trading:
            {
                switch (endPointType)
                {
                case ServiceEndPointType.Sandbox:
                    return(new Url("https://api.sandbox.ebay.com/wsapi"));

                case ServiceEndPointType.Production:
                    return(new Url("https://api.ebay.com/wsapi"));

                default:
                    throw new NotImplementedException();
                }
            }

            case EbayServiceType.BulkDataExchangeService:
            {
                switch (endPointType)
                {
                case ServiceEndPointType.Sandbox:
                    return(new Url("https://webservices.sandbox.ebay.com/BulkDataExchangeService"));

                case ServiceEndPointType.Production:
                    return(new Url("https://webservices.ebay.com/BulkDataExchangeService"));

                default:
                    throw new NotImplementedException();
                }
            }

            case EbayServiceType.FileTransferService:
            {
                switch (endPointType)
                {
                case ServiceEndPointType.Sandbox:
                    return(new Url("https://storage.sandbox.ebay.com/FileTransferService"));

                case ServiceEndPointType.Production:
                    return(new Url("https://storage.ebay.com/FileTransferService"));

                default:
                    throw new NotImplementedException();
                }
            }

            default:
                throw new NotImplementedException();
            }
        }
Exemple #2
0
        public Url Create(ServiceEndPointType endPointType)
        {
            switch (endPointType)
            {
            case ServiceEndPointType.Sandbox:
                return(new Url("https://signin.sandbox.ebay.com/ws/eBayISAPI.dll?SignIn"));

            case ServiceEndPointType.Production:
                return(new Url("https://signin.ebay.com/ws/eBayISAPI.dll?SignIn"));

            default:
                throw new NotImplementedException();
            }
        }
Exemple #3
0
 public EbayServiceConnectionInfo(ServiceEndPointType endPointType, IServiceEndPointFactory serviceEndPointFactory)
 {
     _ServiceEndPointFactory = serviceEndPointFactory;
     EndPointType            = endPointType;
 }