Browse Source

1

pjzs_starttask_update
shanji 1 year ago
parent
commit
5e6ed339d7
  1. 10
      BBWY.Server.Business/Sync/ProductSyncBusiness.cs

10
BBWY.Server.Business/Sync/ProductSyncBusiness.cs

@ -246,11 +246,11 @@ namespace BBWY.Server.Business.Sync
public void SyncAllShopAllProduct()
{
var shopList = venderBusiness.GetShopList(platform: Enums.Platform.);
SyncProduct(shopList.FirstOrDefault(s => s.ShopId == "12309755"), true);
//foreach (var shop in shopList)
//{
// Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler);
//}
//SyncProduct(shopList.FirstOrDefault(s => s.ShopId == "12309755"), true);
foreach (var shop in shopList)
{
Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler);
}
}
private string GetCategoryName(ShopResponse shop, string categoryId)

Loading…
Cancel
Save