public static CookieShoppingProvider Instance()
 {
     if (HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         return(CookieShoppingSubsiteProvider.CreateInstance());
     }
     return(CookieShoppingMasterProvider.CreateInstance());
 }
示例#2
0
 static CookieShoppingSubsiteProvider()
 {
     CookieShoppingSubsiteProvider._defaultInstance = (DataProviders.CreateInstance("Hidistro.SaleSystem.DistributionData.CookieShoppingData,Hidistro.SaleSystem.DistributionData") as CookieShoppingSubsiteProvider);
 }