public static SiteContext GetExistingSiteContext([NotNull] ServiceClientArgs args) { Debug.ArgumentNotNull(args, "args"); Assert.IsNotNullOrEmpty(args.SiteName, "Site name reqired."); SiteContext site = SiteContextFactory.GetSiteContext(args.SiteName); Assert.IsNotNull(site, "Unable to resolve site."); VisitorShopResolvingProcessor shopReolver = new VisitorShopResolvingProcessor(); using (new SiteContextSwitcher(site)) { shopReolver.Process(new PipelineArgs()); } return site; }
public static SiteContext GetExistingSiteContext([NotNull] ServiceClientArgs args) { Debug.ArgumentNotNull(args, "args"); Assert.IsNotNullOrEmpty(args.SiteName, "Site name reqired."); SiteContext site = SiteContextFactory.GetSiteContext(args.SiteName); Assert.IsNotNull(site, "Unable to resolve site."); VisitorShopResolvingProcessor shopReolver = new VisitorShopResolvingProcessor(); using (new SiteContextSwitcher(site)) { shopReolver.Process(new PipelineArgs()); } return(site); }