TcHmiSrvSubscriptionListener Class

Provides 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.

Inheritance Hierarchy

System.Object
  TcHmiSrv.TcHmiSrvListener
    TcHmiSrv.TcHmiSrvSubscriptionListenerBase
      TcHmiSrv.TcHmiSrvSubscriptionListener
Namespace:  TcHmiSrv
Assembly:  TcHmiSrvExtNet (in TcHmiSrvExtNet.dll) Version: 3.0.0.0

Syntax

C#

public class TcHmiSrvSubscriptionListener : TcHmiSrvSubscriptionListenerBase, 
    IExternalCaller<string>

The TcHmiSrvSubscriptionListener type exposes the following members.

Constructors

 

Name

Description

TcHmiSrvSubscriptionListener Class 1:

TcHmiSrvSubscriptionListener

Initializes a new instance of the TcHmiSrvSubscriptionListener class

Properties

 

Name

Description

TcHmiSrvSubscriptionListener Class 2:

Type

(Inherited from TcHmiSrvListener.)

Methods

 

Name

Description

TcHmiSrvSubscriptionListener Class 3:

Dispose.

(Inherited from TcHmiSrvListener.)

TcHmiSrvSubscriptionListener Class 4:

Dispose(Boolean)

(Inherited from TcHmiSrvSubscriptionListenerBase.)

TcHmiSrvSubscriptionListener Class 5:

Equals

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

TcHmiSrvSubscriptionListener Class 6:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

TcHmiSrvSubscriptionListener Class 7:

GetHashCode

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

TcHmiSrvSubscriptionListener Class 8:

GetType

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

TcHmiSrvSubscriptionListener Class 9:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

TcHmiSrvSubscriptionListener Class 10:

ToString

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

Events

 

Name

Description

TcHmiSrvSubscriptionListener Class 11:

OnSubscribe

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

TcHmiSrvSubscriptionListener Class 12:

OnUnsubscribe

Called when a client closes a subscription.

Reference

TcHmiSrv Namespace