Notifier Class
Represents the operations that raise and clear persistent notifications and send one-shot notifications by using the Notifications Provider.
Namespace: Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications
Assembly: CoreProviders (in CoreProviders.dll)
Inheritance Hierarchy
System.Object
Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications.Notifier
Syntax
public sealed class Notifier : IDisposable
public ref class Notifier sealed : IDisposable
Public NotInheritable Class Notifier
Implements IDisposable
Constructors
Name | Description | |
---|---|---|
Notifier() | Initializes a new instance of the Notifier class. |
|
Notifier(Action<NotificationChangeRequest>) | Initializes a new instance of the Notifier class with the specified change request. |
|
Notifier(Action<NotificationChangeRequest>, Boolean) | Initializes a new instance of the Notifier class with the specified change request. The Notifier object can connect to the Notifications Provider on the server or the local computer. |
Methods
Name | Description | |
---|---|---|
Dispose() | Releases all of the resources that are used by the Notifier object. |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | Releases unmanaged resources and performs other cleanup operations before the M:Microsoft.WindowsServerSolutions.Common.ProviderFramework.Notifications.Notifier object is reclaimed by garbage collection.(Overrides Object.Finalize().) |
|
FireEvent(Notification) | Sends a one-shot notification. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
RaiseNotification(Notification) | Raises a persistent notification that is managed by the Notifications Provider. |
|
RaiseNotifications(IList<Notification>, IList<Action>) | Raises a list of persistent notifications that are managed by the Notifications Provider. |
|
ToString() | (Inherited from Object.) |
Remarks
When a Notifier object is disposed, any persistent notifications that were raised by it are automatically cleared. One-shot notifications do not need to be cleared.
Instances of this class are not thread; raising or clearing notifications from one thread while disposing the notifier object on another thread may lead to undefined behavior (such as a NullReferenceException).
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.Common.ProviderFramework.Notifications Namespace
Return to top