Table of Contents

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 NotificationSubscriber

The other.

Returns

int

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

OnNotify(string, NotificationArgs)

Call to invoke observer.

public virtual void OnNotify(string notification, NotificationArgs args)

Parameters

notification string

The notification.

args NotificationArgs

The args.

Operators

operator ==(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator ==(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool

operator >(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator >(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool

operator >=(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator >=(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool

operator !=(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator !=(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool

operator <(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator <(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool

operator <=(NotificationSubscriber?, NotificationSubscriber?)

public static bool operator <=(NotificationSubscriber? left, NotificationSubscriber? right)

Parameters

left NotificationSubscriber
right NotificationSubscriber

Returns

bool
To top