C# Class Opc.Ua.Com.Server.ComAe2Subscription

A base class for classes that implement an OPC COM specification.
Inheritance: IDisposable
Mostrar archivo Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
ApplyChanges ( ) : void

Applies any changes to the subscription.

CancelRefresh ( ) : void

Cancels a previous refresh.

ComAe2Subscription ( ComAe2Proxy server, ComAe2ProxyConfiguration configuration, ComAeNamespaceMapper mapper, ComAe2Browser browser, AeConditionManager conditionManager ) : System

Initializes a new instance of the ComHdaBrowser class.

Dispose ( ) : void

Frees any unmanaged resources.

GetFilter ( int &eventTypes, ushort &lowSeverity, ushort &highSeverity, uint &categoryIds, string &areas, string &sources ) : void

Get the event filter parameters.

GetSelectedAttributes ( uint categoryId ) : uint[]

Returns the currently selected attributes.

OnSessionReconected ( Session session ) : void

Updates the object after a reconnect.

Refresh ( ) : void

Initiates of refresh of all conditions.

SelectAttributes ( uint categoryId, uint attributeIds ) : void

Selects the attributes for the event category.

SetCallback ( IComAeEventCallback callback ) : void

Sets the callback.

SetFilter ( int eventTypes, ushort lowSeverity, ushort highSeverity, uint categoryIds, string areas, string sources ) : void

Sets the event filter.

SetKeepAlive ( uint keepAlive ) : uint

Sets the keep alive rate.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
CreateMonitoredItem ( NodeId notifierId ) : MonitoredItem

Creates a new monitored item and adds it to the subscription.

CreateSubscription ( ) : void

Creates the subscription.

DoProcessQueue ( object state ) : void

Called send events to client.

DoRefresh ( object state ) : void

Cslled to send refresh events to client.

ModifySubscription ( ) : void

Modifies a subscription.

OnEventNotification ( Subscription subscription, EventNotificationList notification, IList stringTable ) : void
SendInBlocks ( IComAeEventCallback callback, Queue events, uint blockSize, bool refreshFlag ) : void

Sends the queued events in blocks.

ThrowIfDisposed ( ) : void

Throws if disposed.

Translate ( AeEvent e ) : OpcRcw.Ae.ONEVENTSTRUCT

Marshals an event for return to the client.

UpdateAreaFilter ( List areas ) : void

Updates the list of area filters.

UpdateSourceFilter ( List sources ) : void

Updates the list of source filters.

Method Details

ApplyChanges() public method

Applies any changes to the subscription.
public ApplyChanges ( ) : void
return void

CancelRefresh() public method

Cancels a previous refresh.
public CancelRefresh ( ) : void
return void

ComAe2Subscription() public method

Initializes a new instance of the ComHdaBrowser class.
public ComAe2Subscription ( ComAe2Proxy server, ComAe2ProxyConfiguration configuration, ComAeNamespaceMapper mapper, ComAe2Browser browser, AeConditionManager conditionManager ) : System
server ComAe2Proxy
configuration ComAe2ProxyConfiguration
mapper ComAeNamespaceMapper
browser ComAe2Browser
conditionManager AeConditionManager
return System

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetFilter() public method

Get the event filter parameters.
public GetFilter ( int &eventTypes, ushort &lowSeverity, ushort &highSeverity, uint &categoryIds, string &areas, string &sources ) : void
eventTypes int
lowSeverity ushort
highSeverity ushort
categoryIds uint
areas string
sources string
return void

GetSelectedAttributes() public method

Returns the currently selected attributes.
public GetSelectedAttributes ( uint categoryId ) : uint[]
categoryId uint
return uint[]

OnSessionReconected() public method

Updates the object after a reconnect.
public OnSessionReconected ( Session session ) : void
session Session
return void

Refresh() public method

Initiates of refresh of all conditions.
public Refresh ( ) : void
return void

SelectAttributes() public method

Selects the attributes for the event category.
public SelectAttributes ( uint categoryId, uint attributeIds ) : void
categoryId uint
attributeIds uint
return void

SetCallback() public method

Sets the callback.
public SetCallback ( IComAeEventCallback callback ) : void
callback IComAeEventCallback The callback.
return void

SetFilter() public method

Sets the event filter.
public SetFilter ( int eventTypes, ushort lowSeverity, ushort highSeverity, uint categoryIds, string areas, string sources ) : void
eventTypes int
lowSeverity ushort
highSeverity ushort
categoryIds uint
areas string
sources string
return void

SetKeepAlive() public method

Sets the keep alive rate.
public SetKeepAlive ( uint keepAlive ) : uint
keepAlive uint
return uint