コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SiteMapHandler"/> class.
        /// </summary>
        /// <param name="siteMaps">The site maps.</param>
        /// <param name="httpResponseCompressor">The HTTP response compressor.</param>
        /// <param name="httpResponseCacher">The HTTP response cacher.</param>
        /// <param name="urlGenerator">The URL generator.</param>
        public SiteMapHandler(SiteMapDictionary siteMaps, IHttpResponseCompressor httpResponseCompressor, IHttpResponseCacher httpResponseCacher, IUrlGenerator urlGenerator)
        {
            Guard.IsNotNull(siteMaps, "siteMaps");
            Guard.IsNotNull(httpResponseCompressor, "httpResponseCompressor");
            Guard.IsNotNull(httpResponseCacher, "httpResponseCacher");
            Guard.IsNotNull(urlGenerator, "urlGenerator");

            this.siteMaps = siteMaps;
            this.httpResponseCompressor = httpResponseCompressor;
            this.httpResponseCacher     = httpResponseCacher;
            this.urlGenerator           = urlGenerator;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PopulateSiteMapAttribute"/> class.
        /// </summary>
        /// <param name="siteMaps">The site maps.</param>
        public PopulateSiteMapAttribute(SiteMapDictionary siteMaps)
        {
            Guard.IsNotNull(siteMaps, "siteMaps");

            SiteMaps = siteMaps;
        }