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 | |
---|---|---|
LocalAlertManager() | Initializes a new instance of the LocalAlertManager class. |
|
LocalAlertManager(SynchronizationContext) | Initializes a new instance of the LocalAlertManager class with the specified synchronization object. |
Properties
Name | Description | |
---|---|---|
AlertCollection | Gets a collection of alerts.(Inherited from AlertManager.) |
|
AlertCollectionFilter | Gets and sets the alert collection filter.(Inherited from AlertManager.) |
|
Connected | Indicates whether the LocalAlertManager is connected to the Alert Provider. |
|
IsAlertsCollectionInSync | Gets and sets a value that determines if the aler collection is in sync.(Inherited from AlertManager.) |
Methods
Name | Description | |
---|---|---|
ClearLocalAlert(String, String) | Removes the alert from the network. |
|
ClearLocalAlertAsync(String, String) | Asynchronously removes an alert from the network. |
|
Connect() | Connects to the local Alert Provider. |
|
Connect(TimeSpan) | Connects the local alert manager to the local alert provider service with the specified timeout period. |
|
ConnectAsync() | Asynchonously connects to the local Alert Provider. |
|
ConnectAsync(TimeSpan) | Asynchronously connects the local alert manager to the local alert provider service with the specified timeout period. |
|
Disconnect() | Disconnects the Local Alert Manager from the Alert Provider. |
|
Dispose() | Releases the resources used by the component.(Inherited from AlertManager.) |
|
Dispose(Boolean) | Releases the unmanaged resources used by the LocalAlertManager object and optionally releases the managed resources.(Overrides AlertManager.Dispose(Boolean).) |
|
Equals(Object) | (Inherited from Object.) |
|
EvaluateAlerts() | Starts a health evaluation cycle on the local computer by using a scheduled task. |
|
EvaluateAlertsAsync() | Asynchronously starts a health evaluation cycle on the local computer. |
|
EvaluateAllAlertsAsync() | Asynchronously starts a health evaluation cycle on the local computer for all of the health definitions that are defined. |
|
Finalize() | (Inherited from Object.) |
|
FirstOrDefaultAlert(Func<Alert, Boolean>) | A thread safe way to access find an alert in the alert collection.(Inherited from AlertManager.) |
|
GetAlert(AlertInfo) | Creates an Alert object.(Overrides AlertManager.GetAlert(AlertInfo).) |
|
GetAllLocalAlerts() | Returns a collection of the Alert objects that represents the active alerts on the local computer. |
|
GetAllLocalAlertsAsync() | Asynchronously returns a collection of Alert objects that represents the active alerts on the local computer. |
|
GetHashCode() | (Inherited from Object.) |
|
GetLocalAlert(String, String) | Returns an alert, if it is exists, for the specified feature and health definition that is defined on the local computer. |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
RaiseLocalAlert(String, String, String) | Raises an alert for a health definition that is defined on the local computer. |
|
RaiseLocalAlert(String, String, String, IEnumerable<String>) | Raises an alert for a health definition that is defined on the local computer, using the specified information. |
|
RaiseLocalAlertAsync(String, String, String) | Asynchronously raises an alert for a health definition that is defined on the local computer. |
|
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. |
|
RaiseTimeoutEvent() | Raises the timeout event.(Inherited from AlertManager.) |
|
RunOrPostToSynchronizationContext(Action) | Attempts to post an action to under the synchronization context, unless there is no synchronization context is set.(Inherited from AlertManager.) |
|
RunOrSendToSynchronizationContext(Action) | Attempts to send an action to under the synchronization context, unless there is no synchronization context is set.(Inherited from AlertManager.) |
|
StartHealthService(TimeSpan) | Attempts to start the service within the specified timeout window.(Inherited from AlertManager.) |
|
ToString() | (Inherited from Object.) |
|
UpdateDefinitionPlugIn() | Updates the feature definitions on the server. |
Events
Name | Description | |
---|---|---|
ClearLocalAlertCompleted | Represents an event that is raised when the ClearLocalAlertAsync method finishes. |
|
ConnectionClosed | Represents the event that occurs when the connection is closed. |
|
ConnectionOpened | Represents the event that occurs when the connection is opened. |
|
ConnectionTimeout | Represents the event that is raised when the connection times out.(Inherited from AlertManager.) |
|
EvaluateAlertsCompleted | Represents an event that is raised when the EvaluateAlertsAsync method finishes. |
|
EvaluateAllAlertsCompleted | Represents an event that is raised when the EvaluateAllAlertsAsync method finishes. |
|
GetAllLocalAlertsCompleted | Represents the events that is raised when the GetAllLocalAlertsAsync method finishes. |
|
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