Show / Hide Table of Contents

Class NotificationSubscription<TPayload>

Defines the subscription of a notification.

Inheritance
System.Object
NotificationSubscription<TPayload>
Implements
INotificationSubscription
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Notification
Assembly: Sartorius.SAF.dll
Syntax
public class NotificationSubscription<TPayload> : INotificationSubscription
Type Parameters
Name Description
TPayload

Constructors

View Source

NotificationSubscription(IDelegateReference, IDelegateReference)

Creates a new instance of the NotificationSubscription<TPayload> class.

Declaration
public NotificationSubscription(IDelegateReference actionReference, IDelegateReference filterReference)
Parameters
Type Name Description
IDelegateReference actionReference

The reference to the action delegate.

IDelegateReference filterReference

The reference to the filter delegate.

Exceptions
Type Condition
System.ArgumentNullException

actionReference or filterReference is null.

System.ArgumentException

The Target properties of actionReference or filterReference are null or not of type System.Action<T>.

Properties

View Source

Action

Gets the target System.Action<T> that is referenced by the IDelegateReference.

Declaration
public Action<TPayload> Action { get; }
Property Value
Type Description
System.Action<TPayload>
View Source

Filter

Gets the target System.Predicate<T> that is referenced by the IDelegateReference.

Declaration
public Predicate<TPayload> Filter { get; }
Property Value
Type Description
System.Predicate<TPayload>
View Source

SubscriptionToken

Gets the SubscriptionToken that identifies the NotificationSubscription<TPayload>.

Declaration
public SubscriptionToken SubscriptionToken { get; }
Property Value
Type Description
SubscriptionToken

Methods

View Source

GetExecutionStrategy()

Gets the execution strategy to publish this notification.

Declaration
public MulticastDelegate GetExecutionStrategy()
Returns
Type Description
System.MulticastDelegate

The System.MulticastDelegate that represents the execution strategy.

Implements

INotificationSubscription

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX