Beispiel #1
0
        public TrueShipCommonService(TrueShipConfiguration config, IWebRequestServices webRequestServices)
        {
            Condition.Requires(config, "config").IsNotNull();
            Condition.Requires(webRequestServices, "webRequestServices").IsNotNull();

            this._webRequestServices = webRequestServices;
            this._requestService     = new RequestCreatorService(config.Credentials.AccessToken);
            this._paginationService  = new PaginationService(this._webRequestServices);
        }
Beispiel #2
0
        public EbayServiceLowLevel(EbayUserCredentials credentials, EbayConfig ebayConfig, IWebRequestServices webRequestServices)
        {
            Condition.Requires(credentials, "credentials").IsNotNull();
            Condition.Requires(webRequestServices, "webRequestServices").IsNotNull();
            Condition.Requires(ebayConfig, "ebayDevCredentials").IsNotNull();

            this._userCredentials     = credentials;
            this._webRequestServices  = webRequestServices;
            this._endPoint            = ebayConfig.EndPoint;
            this._endPointBulkExhange = ebayConfig.EndPointBulkExhange;
            this._ebaySignInUrl       = ebayConfig.SignInUrl;
            this._itemsPerPage        = 200;
            this._ebayConfig          = ebayConfig;
        }
Beispiel #3
0
        public EbayService(EbayUserCredentials credentials, EbayConfig ebayConfig, IWebRequestServices webRequestServices)
        {
            this.EbayServiceLowLevel = new EbayServiceLowLevel(credentials, ebayConfig, webRequestServices);

            DelayForMethod = new Dictionary <string, int>();
        }
 public ShipStationService(ShipStationCredentials credentials, ShipStationTimeouts timeouts, IWebRequestServices webServices = null)
 {
     this._webRequestServices = webServices ?? new WebRequestServices(credentials);
     this._timeouts           = timeouts;
 }
 public PaginationService(IWebRequestServices webRequestServices)
 {
     this._webRequestServices = webRequestServices;
 }