Webiant Logo Webiant Logo
  1. No results found.

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

INotificationService.cs

namespace Nop.Services.Messages;

/// 
/// Notification service interface
/// 
public partial interface INotificationService
{
    /// 
    /// Display notification
    /// 
    /// Notification type
    /// Message
    /// A value indicating whether the message should not be encoded
    void Notification(NotifyType type, string message, bool encode = true);

    /// 
    /// Display success notification
    /// 
    /// Message
    /// A value indicating whether the message should not be encoded
    void SuccessNotification(string message, bool encode = true);

    /// 
    /// Display warning notification
    /// 
    /// Message
    /// A value indicating whether the message should not be encoded
    void WarningNotification(string message, bool encode = true);

    /// 
    /// Display error notification
    /// 
    /// Message
    /// A value indicating whether the message should not be encoded
    void ErrorNotification(string message, bool encode = true);

    /// 
    /// Display error notification
    /// 
    /// Exception
    /// A value indicating whether exception should be logged
    /// A task that represents the asynchronous operation
    Task ErrorNotificationAsync(Exception exception, bool logException = true);
}