Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

ISitemapModelFactory.cs

using Nop.Web.Models.Sitemap;

namespace Nop.Web.Factories;

/// 
/// Represents a sitemap model factory
/// 
public partial interface ISitemapModelFactory
{
    /// 
    /// Prepare the sitemap model
    /// 
    /// Sitemap page model
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the sitemap model
    /// 
    Task PrepareSitemapModelAsync(SitemapPageModel pageModel);

    /// 
    /// Prepare sitemap model.
    /// This will build an XML sitemap for better index with search engines.
    /// See http://en.wikipedia.org/wiki/Sitemaps for more information.
    /// 
    /// Sitemap identifier
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the sitemap model with sitemap.xml as string
    /// 
    Task PrepareSitemapXmlModelAsync(int id = 0);

    /// 
    /// Prepare localized sitemap URL model
    /// 
    /// Route name
    /// Lambda for route params object
    /// A time when URL was updated last time
    /// How often to update url
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the sitemap URL model
    /// 
    Task PrepareLocalizedSitemapUrlAsync(string routeName,
        Func> getRouteParamsAwait = null,
        DateTime? dateTimeUpdatedOn = null,
        UpdateFrequency updateFreq = UpdateFrequency.Weekly);
}