C# Class SiteStatus.Factories.DatabaseMonitorFactory

This handles the instantiation of the correct IStatusMonitor for services of the Database ServiceType.
Inheritance: BaseStatusMonitorFactory
Show file Open project: iinteractive/site-status Class Usage Examples

Public Methods

Method Description
DatabaseMonitorFactory ( ) : System

Creates a database monitor factory for generating IServiceMonitors for checking the status of the site's databases.

GetMonitor ( Service service ) : IStatusMonitor

Gets an implementation of IStatusMonitor that uses appropriate code, and SQL to determine the availability of the database.

Method Details

DatabaseMonitorFactory() public method

Creates a database monitor factory for generating IServiceMonitors for checking the status of the site's databases.
public DatabaseMonitorFactory ( ) : System
return System

GetMonitor() public method

Gets an implementation of IStatusMonitor that uses appropriate code, and SQL to determine the availability of the database.
public GetMonitor ( Service service ) : IStatusMonitor
service Service A database service to retrieve a status monitor.
return IStatusMonitor