Webiant Logo Webiant Logo
  1. No results found.

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

AppStartedEvent.cs

namespace Nop.Core.Events;

/// 
/// Event that is published when the application has started.
/// This event can be consumed by plugins or services that need to perform actions
/// once the application is fully initialized.
/// 
public partial class AppStartedEvent
{
    /// 
    /// Initializes a new instance of the  class.
    /// Sets the timestamp of when the application was started in UTC.
    /// 
    public AppStartedEvent()
    {
        StartedAtUtc = DateTime.UtcNow;
    }

    /// 
    /// Gets the UTC date and time when the application started.
    /// 
    public DateTime StartedAtUtc { get; }
}