public SitemapCreateJob() { IsStoppable = true; this._sitemapRepository = ServiceLocator.Current.GetInstance <ISitemapRepository>(); this._sitemapXmlGeneratorFactory = ServiceLocator.Current.GetInstance <SitemapXmlGeneratorFactory>(); }
private static GetaSitemapController CreateController(ISitemapRepository repo, SitemapXmlGeneratorFactory factory, ControllerContext controllerContext) { var controller = new GetaSitemapController(repo, factory); controller.ControllerContext = controllerContext; controller.Response.Filter = new MemoryStream(); return(controller); }
public GetaSitemapController(ISitemapRepository sitemapRepository, SitemapXmlGeneratorFactory sitemapXmlGeneratorFactory) { _sitemapRepository = sitemapRepository; _sitemapXmlGeneratorFactory = sitemapXmlGeneratorFactory; }
public static GetaSitemapController CreateController(ISitemapRepository repo, SitemapXmlGeneratorFactory factory) { return(CreateController(repo, factory, CreateControllerContext())); }
public SitemapCreateJob() { this._sitemapRepository = new SitemapRepository(); this._sitemapXmlGeneratorFactory = new SitemapXmlGeneratorFactory(this._sitemapRepository); }