NetworkAlertManager Constructor (Boolean, SynchronizationContext)
Initializes a new instance of the NetworkAlertManager class with the specified Boolean value and the specified synchronization object.
Namespace: Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework
Assembly: AlertFramework (in AlertFramework.dll)
Syntax
public NetworkAlertManager(
bool fallbackToLocal,
SynchronizationContext syncContext
)
public:
NetworkAlertManager(
bool fallbackToLocal,
SynchronizationContext^ syncContext
)
Public Sub New (
fallbackToLocal As Boolean,
syncContext As SynchronizationContext
)
Parameters
fallbackToLocal
Type: System.BooleanIndicates that local alerts are used if the client is disconnected.
syncContext
Type: System.Threading.SynchronizationContextThe SynchronizationContext object that is used to connect to the Alert Provider.
Remarks
When the NetworkAlertManager connects, two events are raised between invoking the connection and fully entering the connected state. When fallbackToLocal is set to true, the ConnectionOpened event is raised twice; once for the local alert connection and once for the network alert connection. When fallbackToLocal is set to false, ConnectionClosed event is raised first, then the ConnectionOpened event is raised when the network and local alert connections are acquired.
See Also
NetworkAlertManager Overload
NetworkAlertManager Class
Microsoft.WindowsServerSolutions.NetworkHealth.AlertFramework Namespace
Return to top