Share via


LocalAlertManager Class

 

Represents the object that is used to locally manage alerts.

Namespace:   Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly:  AlertFramework (in AlertFramework.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.AlertManager
    Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework.LocalAlertManager

Syntax

public class LocalAlertManager : AlertManager
public ref class LocalAlertManager : AlertManager
Public Class LocalAlertManager
    Inherits AlertManager

Constructors

Name Description
System_CAPS_pubmethod LocalAlertManager()

Initializes a new instance of the LocalAlertManager class.

System_CAPS_pubmethod LocalAlertManager(SynchronizationContext)

Initializes a new instance of the LocalAlertManager class with the specified synchronization object.

Properties

Name Description
System_CAPS_pubproperty AlertCollection

Gets a collection of alerts.(Inherited from AlertManager.)

System_CAPS_protproperty AlertCollectionFilter

Gets and sets the alert collection filter.(Inherited from AlertManager.)

System_CAPS_pubproperty Connected

Indicates whether the LocalAlertManager is connected to the Alert Provider.

System_CAPS_protproperty IsAlertsCollectionInSync

Gets and sets a value that determines if the aler collection is in sync.(Inherited from AlertManager.)

Methods

Name Description
System_CAPS_pubmethod ClearLocalAlert(String, String)

Removes the alert from the network.

System_CAPS_pubmethod ClearLocalAlertAsync(String, String)

Asynchronously removes an alert from the network.

System_CAPS_pubmethod Connect()

Connects to the local Alert Provider.

System_CAPS_pubmethod Connect(TimeSpan)

Connects the local alert manager to the local alert provider service with the specified timeout period.

System_CAPS_pubmethod ConnectAsync()

Asynchonously connects to the local Alert Provider.

System_CAPS_pubmethod ConnectAsync(TimeSpan)

Asynchronously connects the local alert manager to the local alert provider service with the specified timeout period.

System_CAPS_pubmethod Disconnect()

Disconnects the Local Alert Manager from the Alert Provider.

System_CAPS_pubmethod Dispose()

Releases the resources used by the component.(Inherited from AlertManager.)

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the LocalAlertManager object and optionally releases the managed resources.(Overrides AlertManager.Dispose(Boolean).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod EvaluateAlerts()

Starts a health evaluation cycle on the local computer by using a scheduled task.

System_CAPS_pubmethod EvaluateAlertsAsync()

Asynchronously starts a health evaluation cycle on the local computer.

System_CAPS_pubmethod EvaluateAllAlertsAsync()

Asynchronously starts a health evaluation cycle on the local computer for all of the health definitions that are defined.

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_protmethod FirstOrDefaultAlert(Func<Alert, Boolean>)

A thread safe way to access find an alert in the alert collection.(Inherited from AlertManager.)

System_CAPS_protmethod GetAlert(AlertInfo)

Creates an Alert object.(Overrides AlertManager.GetAlert(AlertInfo).)

System_CAPS_pubmethod GetAllLocalAlerts()

Returns a collection of the Alert objects that represents the active alerts on the local computer.

System_CAPS_pubmethod GetAllLocalAlertsAsync()

Asynchronously returns a collection of Alert objects that represents the active alerts on the local computer.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetLocalAlert(String, String)

Returns an alert, if it is exists, for the specified feature and health definition that is defined on the local computer.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod RaiseLocalAlert(String, String, String)

Raises an alert for a health definition that is defined on the local computer.

System_CAPS_pubmethod RaiseLocalAlert(String, String, String, IEnumerable<String>)

Raises an alert for a health definition that is defined on the local computer, using the specified information.

System_CAPS_pubmethod RaiseLocalAlertAsync(String, String, String)

Asynchronously raises an alert for a health definition that is defined on the local computer.

System_CAPS_pubmethod RaiseLocalAlertAsync(String, String, String, IEnumerable<String>)

Asynchronously raises an alert for a health definition that is defined on the local computer, using the specified additional information.

System_CAPS_protmethod RaiseTimeoutEvent()

Raises the timeout event.(Inherited from AlertManager.)

System_CAPS_protmethod RunOrPostToSynchronizationContext(Action)

Attempts to post an action to under the synchronization context, unless there is no synchronization context is set.(Inherited from AlertManager.)

System_CAPS_protmethod RunOrSendToSynchronizationContext(Action)

Attempts to send an action to under the synchronization context, unless there is no synchronization context is set.(Inherited from AlertManager.)

System_CAPS_protmethod StartHealthService(TimeSpan)

Attempts to start the service within the specified timeout window.(Inherited from AlertManager.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod UpdateDefinitionPlugIn()

Updates the feature definitions on the server.

Events

Name Description
System_CAPS_pubevent ClearLocalAlertCompleted

Represents an event that is raised when the ClearLocalAlertAsync method finishes.

System_CAPS_pubevent ConnectionClosed

Represents the event that occurs when the connection is closed.

System_CAPS_pubevent ConnectionOpened

Represents the event that occurs when the connection is opened.

System_CAPS_pubevent ConnectionTimeout

Represents the event that is raised when the connection times out.(Inherited from AlertManager.)

System_CAPS_pubevent EvaluateAlertsCompleted

Represents an event that is raised when the EvaluateAlertsAsync method finishes.

System_CAPS_pubevent EvaluateAllAlertsCompleted

Represents an event that is raised when the EvaluateAllAlertsAsync method finishes.

System_CAPS_pubevent GetAllLocalAlertsCompleted

Represents the events that is raised when the GetAllLocalAlertsAsync method finishes.

System_CAPS_pubevent RaiseLocalAlertCompleted

Represents an event that is raised when the RaiseLocalAlertAsync method finishes.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace

Return to top