public void Dispose()
 {
     if (fb != null)
     {
         fb.Dispose();
         fb = null;
     }
 }
Exemple #2
0
 public eBayIntegration(Config cfg)
 {
     this.cfg = cfg;
     if (ebc == null)
     {
         ebc = new eBayController(cfg);
     }
     if (fb == null)
     {
         fb = new FishbowlController(cfg);
     }
 }
Exemple #3
0
        private void InitConnections()
        {
            if (fb == null)
            {
                Log("Connecting to Fishbowl");
                fb = new FishbowlController(cfg);
            }

            if (ebc == null)
            {
                Log("Connecting to eBay");
                ebc = new eBayController(cfg);
            }
        }
        private void InitConnections()
        {
            if (fb == null)
            {
                Log("Connecting to Fishbowl");
                fb = new FishbowlController(cfg);
            }

            if (zc == null)
            {
                Log("Connecting to ZenCart");
                zc = new ZenCartController(cfg);
            }
        }
 public eBayController(Config cfg)
 {
     if (this.cfg == null)
     {
         this.cfg = cfg;
     }
     if (this.fb == null)
     {
         this.fb = new FishbowlController(this.cfg);
     }
     if (context == null)
     {
         context = new ApiContext();
         this.context.ApiCredential.eBayToken = cfg.Store.ApiToken;
         this.context.SoapApiServerUrl        = cfg.Store.StoreUrl;
         context.Version = "983";
         context.Site    = SiteCodeType.Australia;
         //context.ApiLogManager = new ApiLogManager();
         //context.ApiLogManager.ApiLoggerList.Add(new FileLogger("log.txt", true, true, true));
         //context.ApiLogManager.EnableLogging = false;
     }
 }