Try your search with a different keyword or use * as a wildcard.
namespace Nop.Core.Domain.Messages;
///
/// MessageDelayPeriod Extensions
///
public static class MessageDelayPeriodExtensions
{
///
/// Returns message delay in hours
///
/// Message delay period
/// Value of delay send
/// Value of message delay in hours
public static int ToHours(this MessageDelayPeriod period, int value)
{
return period switch
{
MessageDelayPeriod.Hours => value,
MessageDelayPeriod.Days => value * 24,
_ => throw new ArgumentOutOfRangeException(nameof(period)),
};
}
}