コード例 #1
0
        public ActionResult Index(int batch = 0, string bundle = "")
        {
            var language = _hostBindingsService.IetfLanguageTagFor(_request.Url);
            var selector = new SitemapSelector {
                Language = language, Bundle = bundle, Batch = batch
            };
            var ms  = new MemoryStream(_sitemapRepository.ReadSitemapFor(selector));
            var doc = new XmlDocument();

            doc.Load(ms);
            return(new XmlActionResult(doc));
        }
コード例 #2
0
 protected bool Equals(SitemapSelector other)
 {
     return(string.Equals(Language, other.Language) && string.Equals(Bundle, other.Bundle) && Batch == other.Batch);
 }
コード例 #3
0
ファイル: SitemapSelector.cs プロジェクト: kirolosgerges/Blog
 protected bool Equals(SitemapSelector other)
 {
     return string.Equals(Language, other.Language) && string.Equals(Bundle, other.Bundle) && Batch == other.Batch;
 }