Class NotificationSubscription<TPayload>
Defines the subscription of a notification.
Inheritance
System.Object
NotificationSubscription<TPayload>
Implements
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 SourceNotificationSubscription(IDelegateReference, IDelegateReference)
Creates a new instance of the NotificationSubscription<TPayload> class.
Declaration
public NotificationSubscription(IDelegateReference actionReference, IDelegateReference filterReference)
Parameters
Type | Name | Description |
---|---|---|
IDelegateReference | actionReference |
|
IDelegateReference | filterReference | The reference to the filter delegate. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException | The Target properties of |
Properties
View SourceAction
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> |
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> |
SubscriptionToken
Gets the SubscriptionToken that identifies the NotificationSubscription<TPayload>.
Declaration
public SubscriptionToken SubscriptionToken { get; }
Property Value
Type | Description |
---|---|
SubscriptionToken |
Methods
View SourceGetExecutionStrategy()
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. |