SubscriptionListener Class

Represents a listener to get notified when a client opens or closes a subscription. If this listener is not registered at the TwinCAT HMI server, subscriptions will just call the OnRequest event.This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Listener
    TcHmiSrv.Core.Listeners.SubscriptionListener
Namespace:  TcHmiSrv.Core.Listeners
Assembly:  TcHmiSrvExtNet.Core (in TcHmiSrvExtNet.Core.dll) Version: 1.3.0.0

Syntax

C#

public sealed class SubscriptionListener : Listener, 
    IExternalCaller<string, ErrorValue>

The SubscriptionListener type exposes the following members.

Constructors

 

Name

Description

SubscriptionListener Class 1:

SubscriptionListener

Initializes a new instance of the SubscriptionListener class.

Properties

 

Name

Description

SubscriptionListener Class 2:

Type

Gets the type of the SubscriptionListener. (Overrides Listener.Type.)

Methods

 

Name

Description

SubscriptionListener Class 3:

Equals

Determines whether the specified object is equal to the current object. (Inherited from Object.)

SubscriptionListener Class 4:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

SubscriptionListener Class 5:

GetType

Gets the Type of the current instance. (Inherited from Object.)

SubscriptionListener Class 6:

ToString

Returns a string that represents the current object. (Inherited from Object.)

Events

 

Name

Description

SubscriptionListener Class 7:

OnSubscribe

Called when a client opens a new subscription. The subscription will call the OnRequest once per specified interval.

SubscriptionListener Class 8:

OnUnsubscribe

Called when a client closes a subscription.

Reference

TcHmiSrv.Core.Listeners Namespace