Class WebMonitorSiteList

Handles individual site access and configuration info

System.Object
  System.MarshalByRefObject
    Westwind.WebMonitor.Components.WebMonitorSiteList
public class WebMonitorSiteList : MarshalByRefObject

Class Members

MemberDescription

Constructor

WebMonitorMessage

Config

The core configuration object that provides the filenames and operational settings for requests.

Error

An error flag

ErrorMsg

An error message string if negative returns.

FileName

The XML file that contains the configuration.

IsNewList

This flag gets set if a new list is created. The IDE can check this and bring up Help in response.

Sites

An array of WebMonitor Sites that are managed by this list. Note: Not a collection, but an internal array member.

StopCheckSiteThread

Flag that is used make Web Monitor stop checking.

Add

public void Add( WebMonitorSite Site );

CheckSites

Runs through all sites and checks if it needs to check the site.

public void CheckSites();

CheckSitesAsync

Fires up the background thread that loops through each of the sites

public void CheckSitesAsync();

GetSite

Returns a Site by its SiteId from the array

public WebMonitorSite GetSite( string lcId );

GetSiteByName

Returns a site by name.

public WebMonitorSite GetSiteByName( string Name );

Load

Loads the Sites and oConfig members from disk.

public bool Load( bool llCreate );

OnMessage

Message event handler of the events that get fired from the Site. This intermediate handler captures the events and forwards them to the form's OnMessage handler with proper synchronization.

public void OnMessage( WebMonitorSite Site,
    string Message,
    EventMessageId Id );

PackSites

Packs the Sites array by removing any null references

public void PackSites();

Remove

Removes a site from the site list and repacks the SiteList Array. Note: this may affect any reference that is numeric.

public bool Remove( string lcId );

Save

Saves the current configuration to the WebMonitorSites.xml file (by default)

public bool Save();

Sort

Sorts the list of sites.

public void Sort();

StopThreads

Attempts to shut down any pending threads of the existing running sites

public void StopThreads();

UpdateSite

Updates a Site in the SiteList Array

public void UpdateSite( WebMonitorSite Site );

Count

The count of sites

Item

Requirements

Namespace: Westwind.WebMonitor.Components
Assembly: webmonitorcomponents.dll

© West Wind Technologies, 2018 • Updated: 12/28/06
Comment or report problem with topic