C# Class NZBDash.Services.Monitor.Notification.Notifier

Inheritance: INotifier
Show file Open project: NZBDash/NZBDash Class Usage Examples

Private Properties

Property Type Description
CheckSend void
ConvertEvent string
Reset void
SendEmail void

Public Methods

Method Description
Notifier ( System.TimeSpan interval, IEventService eventService, ISmtpClient client, IFile file, ILogger logger, AlertTypeDto type ) : System
Notify ( bool critical ) : void
ResetCounter ( ) : void
SaveEvent ( ) : void

Private Methods

Method Description
CheckSend ( ) : void
ConvertEvent ( AlertTypeDto type ) : string
Reset ( ) : void
SendEmail ( ) : void

Method Details

Notifier() public method

public Notifier ( System.TimeSpan interval, IEventService eventService, ISmtpClient client, IFile file, ILogger logger, AlertTypeDto type ) : System
interval System.TimeSpan
eventService IEventService
client ISmtpClient
file IFile
logger ILogger
type AlertTypeDto
return System

Notify() public method

public Notify ( bool critical ) : void
critical bool
return void

ResetCounter() public method

public ResetCounter ( ) : void
return void

SaveEvent() public method

public SaveEvent ( ) : void
return void