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
System_CAPS_pubmethod Notifier()

Initializes a new instance of the Notifier class.

System_CAPS_pubmethod Notifier(Action<NotificationChangeRequest>)

Initializes a new instance of the Notifier class with the specified change request.

System_CAPS_pubmethod 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
System_CAPS_pubmethod Dispose()

Releases all of the resources that are used by the Notifier object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod 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().)

System_CAPS_pubmethod FireEvent(Notification)

Sends a one-shot notification.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod RaiseNotification(Notification)

Raises a persistent notification that is managed by the Notifications Provider.

System_CAPS_pubmethod RaiseNotifications(IList<Notification>, IList<Action>)

Raises a list of persistent notifications that are managed by the Notifications Provider.

System_CAPS_pubmethod 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