Class NotificationSubscriber
- Namespace
- Dynamicweb.Extensibility.Notifications
- Assembly
- Dynamicweb.Core.dll
Base implementation of notification subscribers.
public abstract class NotificationSubscriber : IComparable<NotificationSubscriber>
- Inheritance
-
NotificationSubscriber
- Implements
- Derived
- Inherited Members
Properties
IsActive
Gets a value indicating whether this instance is active.
public virtual bool IsActive { get; }
Property Value
- bool
true
if this instance is active; otherwise,false
.
Rank
Gets the rank.
public virtual int Rank { get; }
Property Value
- int
The rank.
Remarks
The subscriber with the highest rank will be notified last
TypeInfo
Gets the type info in a string with namespace, class and assembly name.
protected string TypeInfo { get; }
Property Value
- string
The type info string.
Methods
CompareTo(NotificationSubscriber)
When sorted, the Rank is used.
public int CompareTo(NotificationSubscriber other)
Parameters
other
NotificationSubscriberThe other.
Returns
OnNotify(string, NotificationArgs)
Call to invoke observer.
public virtual void OnNotify(string notification, NotificationArgs args)
Parameters
notification
stringThe notification.
args
NotificationArgsThe args.