C# Класс SiteStatus.Factories.DatabaseMonitorFactory

This handles the instantiation of the correct IStatusMonitor for services of the Database ServiceType.
Наследование: BaseStatusMonitorFactory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

DatabaseMonitorFactory() публичный Метод

Creates a database monitor factory for generating IServiceMonitors for checking the status of the site's databases.
public DatabaseMonitorFactory ( ) : System
Результат System

GetMonitor() публичный Метод

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.
Результат IStatusMonitor