C# Class SensorHost.WebModule

Inheritance: Nancy.NancyModule
显示文件 Open project: rossdargan/PRTG-Sensors

Public Methods

Method Description
WebModule ( Serializer serializer, ISensorFactory sensorFactory ) : System

Creates a webmodule listening to the get requests for all the sensors.

Private Methods

Method Description
QuerySensor ( ISensor sensor ) : Response

Queries the sensor to get the results, and then uses the serializer to convert it to a string.

Method Details

WebModule() public method

Creates a webmodule listening to the get requests for all the sensors.
public WebModule ( Serializer serializer, ISensorFactory sensorFactory ) : System
serializer Serializer
sensorFactory ISensorFactory
return System