Webiant Logo Webiant Logo
  1. No results found.

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

GenericRoutingEvent.cs

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;
using Nop.Core.Domain.Seo;

namespace Nop.Web.Framework.Events;

/// 
/// Represents an event that occurs when a generic route is processed and before default transformation
/// 
public partial class GenericRoutingEvent
{
    #region Ctor

    public GenericRoutingEvent(HttpContext httpContext, RouteValueDictionary values, UrlRecord urlRecord)
    {
        HttpContext = httpContext;
        RouteValues = values;
        UrlRecord = urlRecord;
    }

    #endregion

    #region Properties

    /// 
    /// Gets HTTP context
    /// 
    public HttpContext HttpContext { get; protected set; }

    /// 
    /// Gets route values associated with the current match
    /// 
    public RouteValueDictionary RouteValues { get; protected set; }

    /// 
    /// Gets record found by the URL slug
    /// 
    public UrlRecord UrlRecord { get; protected set; }

    /// 
    /// Gets a value indicating whether the event was handled and values should be used without further processing
    /// 
    public bool Handled { get; set; }

    #endregion
}