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 |
---|---|---|
|
Initializes a new instance of the SubscriptionListener class. |
Properties
|
Name |
Description |
---|---|---|
|
Gets the type of the SubscriptionListener. (Overrides Listener.Type.) |
Methods
|
Name |
Description |
---|---|---|
|
Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
|
Serves as the default hash function. (Inherited from Object.) | |
|
Gets the Type of the current instance. (Inherited from Object.) | |
|
Returns a string that represents the current object. (Inherited from Object.) |
Events
|
Name |
Description |
---|---|---|
|
Called when a client opens a new subscription. The subscription will call the OnRequest once per specified interval. | |
|
Called when a client closes a subscription. |